汇编语言代码改写,把如下代码的姓氏改为“杜”字该怎么改,求大神帮助 5C

;; BIOS会把512字节的引导扇区加载到 0000:7c00 处,
;; 然后跳转到0000:7c00处,将控制权交给引导代码。
org 07c00h ;这一行告诉编译器,我们的代码将被加载到7c00处。
mov ax, cs ;将代码段寄存器的值送入AX
mov ds, ax ;将数据段的地址置为代码段的地址?
mov es, ax ;将附加段的地址置为代码段的地址?
call DispStr ;调用显示字符串例程
jmp $ ;无限循环, $表示当前行编译后的地址
;; 以上就是整个程序的执行过程了
;; 下面是DispStr子程序
DispStr:
mov ax, BootMessage ;将字符串首地址传给寄存器ax
mov bp, ax ;CPU将用ES:BP来寻址字符串
mov cx, 300 ;通过CX,CPU知道字符串的长度
mov ax, 01301h ;AH=13表示13号中断, AL=01H,表示目标字符串仅仅包含字符,属性在BL中包含,移动光标
mov bx, 000fh ;黑底红字, BL=0CH,高亮
mov dl, 0 ;dh表示在第几行显示,dl表示第几列显示
int 10h ;BIOS的10H中断的13号中断用于显示字符串
ret
BootMessage: db "",13,10," **************",13,10," **************",13,10," *** *** ",13,10," ************",13,10," **************",13,10," *** ** ",13,10," ************",13,10," **************",13,10," *********** ",13,10," ********* ",13,10," **** ** ",13,10," ** *** ** **",13,10," ** ****** ",13,10," *** *********",13,10,"*** ****",13,10," ** ****", ;对NASM来讲,标号和变量的作用一样, db表示define byte
;; $当前行被汇编后的地址,$$表示一个section开始处的地址,本程序只有一个section,所以指0x7c00
times 510-($-$$) db 0 ;填充剩下空间,使生成的二进制恰好为512字节
dw 0xaa55 ;结束标志,如果发现扇区以0xAA55结束,则BIOS认为它是一个引导扇区,dw表示define word

1个回答

目测
BootMessage: 是个点阵,星号表示不显示这个像素,空格表示显示。

你拿windows画图板写一个杜字,然后显示网格,放大到最大,照着写它的点阵,就可以了。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
汇编语言代码改写,要是我想把这个代码改成“杜”字,该怎么改,求指导,代码如下
;; BIOS会把512字节的引导扇区加载到 0000:7c00 处,rn ;; 然后跳转到0000:7c00处,将控制权交给引导代码。rn org 07c00h ;这一行告诉编译器,我们的代码将被加载到7c00处。rn mov ax, cs ;将代码段寄存器的值送入AXrn mov ds, ax ;将数据段的地址置为代码段的地址?rn mov es, ax ;将附加段的地址置为代码段的地址?rn call DispStr ;调用显示字符串例程rn jmp $ ;无限循环, $表示当前行编译后的地址rn ;; 以上就是整个程序的执行过程了rn ;; 下面是DispStr子程序rnDispStr:rn mov ax, BootMessage ;将字符串首地址传给寄存器axrn mov bp, ax ;CPU将用ES:BP来寻址字符串rn mov cx, 300 ;通过CX,CPU知道字符串的长度rn mov ax, 01301h ;AH=13表示13号中断, AL=01H,表示目标字符串仅仅包含字符,属性在BL中包含,移动光标rn mov bx, 000fh ;黑底红字, BL=0CH,高亮rn mov dl, 0 ;dh表示在第几行显示,dl表示第几列显示rn int 10h ;BIOS的10H中断的13号中断用于显示字符串rn retrnBootMessage: db "201510320068",13,10," **************",13,10," **************",13,10," *** *** **",13,10," **************",13,10," **************",13,10," *** ** **",13,10," **************",13,10," **************",13,10," *********** **",13,10," *********** **",13,10," ****** ** **",13,10," ** *** ** **",13,10," ** ******** **",13,10," *** ***********",13,10,"*** ****",13,10," ** ****", ;对NASM来讲,标号和变量的作用一样, db表示define bytern ;; $当前行被汇编后的地址,$$表示一个section开始处的地址,本程序只有一个section,所以指0x7c00rn times 510-($-$$) db 0 ;填充剩下空间,使生成的二进制恰好为512字节rn dw 0xaa55 ;结束标志,如果发现扇区以0xAA55结束,则BIOS认为它是一个引导扇区,dw表示define word
求大神指教这段代码该怎么改?
补充:修改源码格式,使其符合《Google C++风格指南》 #include<stdio.h> #define N 8 main() {  int a[N],i,thismax,maxsum;     for(i=0;i<N;i++)   scanf("%d",&a[i]);         thismax=0;   maxsum=0;  for(i=0;i<N;...
帮忙改写如下代码
主要的功能是生成表单,我想让代码更加简单,简介,直观,一清二楚rnrn[code=csharp]rn/// rn /// TextBoxrn /// rn /// name值rn /// value值rn /// stringrn public static string TextBox(string name, string value, string type)rn rn string password = "|p|password|";rn string textarea = "|t|textarea|multiLine|";rnrn if (password.Contains("|" + type + "|"))rn return "";rn else if (textarea.Contains("|" + type + "|"))rn return "" + value + ""; rn elsern return "";rn rnrn /// rn /// CheckBoxrn /// rn /// name值rn /// value值rn /// 默认值rn /// stringrn public static string CheckBox(string name, string value, string defaultchecked)rn rn if (!value.Contains("|"))rn rn return "";rn rn elsern rn System.Text.StringBuilder sb = new System.Text.StringBuilder();rn string[] arr = value.Split('|');rn for (int i = 0; i < arr.Length; i++)rn rn if (arr[i].Contains("="))rn rn string[] attr = arr[i].Split('=');rn sb.Append("" + attr[0] + "");rn rn elsern rn sb.Append("" + arr[i] + "");rn rn rn return sb.ToString();rn rn rnrn /// rn /// Selectrn /// rn /// name值rn /// value值rn /// 默认值rn /// stringrn public static string Select(string name, string value, string selected)rn rn System.Text.StringBuilder sb = new System.Text.StringBuilder();rn sb.Append("");rnrn string[] arr = value.Split('|');rn for (int i = 0; i < arr.Length; i++)rn rn if (arr[i].Contains("="))rn rn string[] attr = arr[i].Split('=');rn sb.Append("" + attr[0] + "");rn rn elsern sb.Append("" + arr[i] + "");rn rn sb.Append("");rnrn return sb.ToString();rn rn[/code]
如下代码如何改写
我有如下代码,是在首页显示的,其功能是,当鼠标滑动,然后显示相应内容,由于每个js文件内容比较多,因此在首页显示时候,由于需要下载显示全部内容,严重影响首页的速度,rn我现在想,在首页第一次显示时,只下载显示"县市局动态"的内容rn rn在首页显示完毕时候,再根据用户鼠标滑动,再下载显示相关内容,比如移动到城市A,则下载显示城市A的有关信息.rn请问,代码该如何改写?rn谢谢!rnrn rn rn<%rnDim oyear,omonth,nyear,nmonth,oday,nday,date1,xdate1,date2,xdate2rnoyear=2004rnomonth=1rnnyear=year(now())rnnmonth=month(now())rnoday=1rnnday=setDay(nyear,nmonth)rnrndate1 = cstr(oyear) & "-" & cstr(omonth) & "-" & cstr(oday) rnxdate1 =cdate(date1) rndate2 = cstr(nYear) & "-" & cstr(nMonth) & "-" & cstr(nday) rn'response.write "*"&date1&"*"&date2rnxdate2 =cdate(date2) rnrnfunction wordlen(strChinese)rndim lenTotal,strWord,irnlenTotal = 0rnfor i=1 to Len(strChinese)rnstrWord = mid(strChinese, i, 1)rnif asc(strWord) < 0 or asc(strWord) > 127 thenrnlenTotal = lenTotal + 2rnelsernlenTotal = lenTotal + 1rnend ifrnnextrnwordlen=lenTotalrnend functionrnDim flag,maxlenrnrn%>rnrn rn rn 县市局动态rn 城市Arn 城市Brn 城市Crn 城市Drn 城市Ern 城市Frnrnrnrn rn rnrn rn rnrn rn rnrn rn rnrn rn rnrn rn rnrn rn rnrnrnrn
mvc中如下结构该怎么改代码?
controller中的php文件如下rnrn public function delete($notice_seq='')rn rn $notice_seq = (int) $notice_seq;rn if($notice_seq == 0)$this->msg("ERROR");rn rn $nt = Cl::get('Notice');rn $nt->load($notice_seq);rn $nt->delete(); //执行该函数可以删除相关项rn rn rnrnview中的代码如下rndeleternrnjs代码如下rn SioOrderManager.prototype.draw = function(json)rn rn .............rn tag.push('delete');rnrn ;rnSioOrderManager.prototype.draw_event = function()rn rn rn $(this.root+'>tbody>tr>td>button.delete').click(function()rn notice_del($(this).parent().parent().children('td.td1').children(':checkbox').val());rn );rn rn ;rnrn。。。。。。。。。。。。。。rnfunction notice_del(notice_seq)rnrn var UserInfoWin = window.open('http://gw.'+DOMAIN+'/hr/notice/delete/'+notice_seq,rn 'UserInfoWin',rn 'top=0,left=0,toolbar=0,directories=0,menubar=0,resizable=0,scrollbars=1,width=800,height=650');rn UserInfoWin.focus();rnrnrn现在情况是点击delete按钮的话,相关项会被删除掉,但是会弹出新窗口,空白的。怎么才能不弹出新窗口,而直接删除。上面的notice_del函数就是弹出窗口的函数,但如果不执行这个,就不能到/hr/notice文件,并执行delete函数。这个/hr/notice/delete/ 是controller中的delete函数rn
这个代码该怎么改?
string s=true;rnthis.lable.visible=s;//想要lable显示出来,编译提示不能转换,又不知道该怎么改,请帮我
这段代码该怎么改
在DELPHI中调用的例子是这样的:rnrnphoto:array[1..102400] of char;rnfillchar(photo,100,#0);rnLen:=GetPhotoBMP(@photo[1],100*1024);rnrn我在PB中写成:rnstring ls_bmprnls_bmp = fill(' ',102400)rnll_len = GetPhotoBMP(ls_BMP,100*1024)rnrn就错了,不知道应该怎么写rn
这段代码该怎么改?
如果将struct换成class可以通过编译rn如果用struct该怎么改?rn[code=C#]rn public struct Coordinatern rn // The x and yrn public double X get; set; rn public double Y get; set; rn // Constructorrn public Coordinate(double x, double y)rn rn X = x;rn Y = y;rn rn rn[/code]rn
求大神解释该怎么改
#include rn#include rn#include rnrnusing namespace std;rnrnint min(int a, int b)rnrn return a < b ? a : b;rnrnrnint edit(string str1, string str2)rnrn int max1 = str1.size();rn int max2 = str2.size();rnrn int **ptr = new int*[max1 + 1];rn for(int i = 0; i < max1 + 1 ;i++)rn rn ptr[i] = new int[max2 + 1];rn rnrn for( i = 0 ;i < max1 + 1 ;i++)rn rn ptr[i][0] = i;rn rnrn for( i = 0 ;i < max2 + 1;i++)rn rn ptr[0][i] = i;rn rnrn for( i = 1 ;i < max1 + 1 ;i++)rn rn for(int j = 1 ;j< max2 + 1; j++)rn rn int d;rn int temp = min(ptr[i-1][j] + 1, ptr[i][j-1] + 1);rn if(str1[i-1] == str2[j-1])rn rn d = 0 ;rn rn elsern rn d = 1 ;rn rn ptr[i][j] = min(temp, ptr[i-1][j-1] + d);rn rn rnrn int dis = ptr[max1][max2];rnrn for( i = 0; i < max1 + 1; i++)rn rn delete[] ptr[i];rn ptr[i] = NULL;rn rnrn delete[] ptr;rn ptr = NULL;rnrn return dis;rnrnrnvoid test1(char str[])rnrnifstream icin;rnicin.open("2.txt");rnchar temp[10000];//定义一个字符数组temprnicin>>temp;//将文件中的数据读到字符数组temp中rnstrcpy(str,temp);rnrnvoid test2(char str[])rnrnifstream icin;rnicin.open("1.txt");rnchar temp[10000];//定义一个字符数组temprnicin>>temp;//将文件中的数据读到字符数组temp中rnstrcpy(str,temp);rnrnint main(void)rnrn char str1[1000];rn char str2[1000];rn test1(str1);rn test2(str2);rnint r = edit(str1, str2);rnprintf("文件的相似度为:%d\n",1/r+1);rnreturn 0;rnrnrn会出现联机错误
这段代码该怎么改?
请问为什么保存时系统报'shop name'不能被使用?代码如下:rnprocedure Tfrm_System.btn_CloseClick(Sender: TObject);rnvarrn EdText,RF,CN:StrArr;rn i:Integer;rn function InsertSQL(Rfields,CodeN, EText:string):string;rn beginrn Result:='Insert into Refectory_Code(RelationFields,RelationMeans,'+rn 'CodeName) Values('+Rfields+','+EText+','+rn ''''+CodeN+''')';rn end;rnbeginrn if btn_Close.Caption='&C 关 闭' thenrn beginrn close;rn end;rn if btn_Close.Caption='&S 保 存' thenrn beginrn if btn_Add.Caption='&C 取 消' thenrn beginrn setlength(EdText,5);rn setlength(RF,5);rn setlength(CN,5);rn for i:=0 to 4 dorn beginrn EdText[0]:=edit_Name.Text;rn EdText[1]:=edit_Tel.Text;rn EdText[2]:=edit_Address.text;rn EdText[3]:=edit_Day.Text;rn EdText[4]:=edit_Min.text;rn //*************************************rn RF[0]:='shop Name';rn RF[1]:='TelCode';rn RF[2]:='Address';rn RF[3]:='Date';rn RF[4]:='Time';rn //************************************rn CN[0]:='餐厅名称';rn CN[1]:='联系电话';rn CN[2]:='餐厅地址';rn CN[3]:='数据库自动备份周期';rn CN[4]:='自动清台时间';rn end;rn for i:=0 to 4 dorn beginrn if length(trim(EdText[i]))>0 thenrn beginrn with ADOQuery1 dorn beginrn close;rn SQL.Clear;rn SQL.text:=InsertSQL(RF[i],CN[i],EdText[i]);rn ExecSql;rn end;rn end;rn end;rn btn_Close.Caption:='&C 关 闭';rn btn_Add.Caption:='&A 添 加';rn rn end;rn end;rnend;
求大神看看,这个代码需要怎么改
源码:// chapter4 homework.cpp : 定义控制台应用程序的入口点。rn//rnrn#include "stdafx.h"rn#include rnusing namespace std;rnrnclass Integerrnrnprivate:rn int num;[code=c][/code]rnpublic:rn Integer(int num)rn rn int temp = num;rn rn int gcd(Integer b)rn rn Integer A(num);rn if (num < b.num)rn rn int temp = num;rn num = b.num;rn b.num = temp;rn rn while (num%b.num != 0)rn rn int temp = num%b.num;rn num = b.num;rn b.num = temp;rn rn return b.num;rn rn;rnrnint main()rnrn int a, b;rn cin >> a >> b;rn Integer A(a);rn Integer B(b);rn cout << A.gcd(B)<< endl;rn return 0;rnrnrn由于图片没有上传,描述运行的问题,每次输入的数据都没有在最后参与到gcd中,而是系统随机分配的初始数据进入运算,因此得到的结果一直不对。rn
如下代码出错 要怎么改?
((System.Web.UI.WebControls.TextBox)dg_jm.Items[dg_jm.EditItemIndex].Cells[2].Controls[0]).Width =3;rnrn错误提示 如下:rn指定的转换无效。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.InvalidCastException: 指定的转换无效。rn整段代码 如下:rnpublic void gd1_Edit(object sender, DataGridCommandEventArgs e) rn rn dg_jm.EditItemIndex = e.Item.ItemIndex; rn int jj = dg_jm.EditItemIndex;rn ((System.Web.UI.WebControls.TextBox)dg_jm.Items[dg_jm.EditItemIndex].Cells[2].Controls[0]).Width =3;rn // System.Web.UI.WebControls.TextBox tb = ( System.Web.UI.WebControls.TextBox )dg_jm.Items[e.Item.ItemIndex].Cells[1].Controls[0];rn // tb.TextMode = TextBoxMode.MultiLine;rn // tb.Rows = 1;rn // tb.Width = 4;rn rn BindGrid(); rn rn毛病 出在哪里?rn请高手 指点!
求改写一句代码
comm.CommandText = "create table test(自动编号 int IDENTITY (1,1) PRIMARY KEY,saas money,asd text)"rncomm.ExecuteNonQuery()rnrn这第二个字段是货币,我想要加入的这个货币值取小数点后两位 sql语句要怎么改 有比较详细的资料可以学习的吗 请提供一下rnrn
求大神帮修改汇编语言的代码!!!
求大神帮我给代码添加[b]尽可能多的注释[/b],哪怕是很弱智的注释也行,最好一眼看上去[b]密密麻麻[/b]的!!!rn其次请大神在原有功能不变的前提下,帮我[b]改一下代码[/b]。(因为是copy别人的,怕交上去被发现)rn就这两个要求!!!尽快呀!!!急要!!!可以追加点数!!!rnrnproth equ 290hrnprotlr equ 298hrnprotly equ 2a0hrnDATA SEGMENTrnmin1 DB 00h,01h,02h,03h,04h,05h,06h,07hrnrnBUFF1 DB 15H, 09H, 15H, 11H, 55H, 0FFH, 5EH, 11HrnBUFF2 DB 7bh, 49h, 0f1h, 41h, 0ffh, 28h, 0fch, 22hrnrnFREQ_L DW 524,20,524,20,784,20,784,20,880,20,880,20rn DW 784,20,698,20,698,20,660,20,660,20,588,20rn DW 588,20,524,20,784,20,784,20,698,20,698,20rn DW 660,20,660,20,588,20,784,20,784,20,698,20rn DW 698,20,660,20,660,20,588,20,0rnDATA ENDSrnSTACK SEGMENT PARA STACK 'STACK'rn DB 32 DUP(?)rnSTACK ENDSrncode segmentrnassume cs:code,ds:data,ss:stackrnstart:rn mov ax,csrn mov ds,axrn mov dx,offset int3rn mov ax,250bhrn int 21hrn rn in al,21hrn and al,0f7hrn out 21h,alrn mov cx,3rn stirnll: jmp llrnint3:rn mov ax,datarn mov ds,axrn rn push cxrn rn agn0: mov cx,80hrnd0: mov ah,01hrn push cxrn mov cx,0008hrn mov si,offset min1rnnext0: mov al,[si]rn mov bx,offset buff1rn xlat ;得到第一行码rn mov dx,prothrn out dx,alrn mov al,ahrn mov dx,protlrrn out dx,al ;显示第一行红rn mov al,0rn out dx,alrn shl ah,01rn inc sirn push cxrn mov cx,0ffh;ffhrndelay0: loop delay0 ;延时rn pop cxrn loop next0rn pop cxrn call delayrn loop d0rn mov al,00rn mov dx,protlrrn out dx,alrn rnagn2: mov cx,80h ;agn1为显示黄色rnd2: mov si,offset min1rn mov ah,01rn push cxrn mov cx,0008hrnnext2: mov al,[si]rn mov bx,offset buff2rn xlatrn mov dx,prothrn out dx,alrn mov al,ahrn mov dx,protlrrn out dx,alrn mov al,0rn out dx,alrn shl ah,01rn inc sirn push cxrn mov cx,0ffh;ffhrndelay2: loop delay2rn pop cxrn loop next2rn pop cxrn call delayrn loop d2rn mov al,00rn mov dx,protlrrn out dx,alrn jmp yinyue rnrnDELAY PROC NEAR ;延迟子程序rn push cxrn mov cx,0ffh;ffhrnccc: loop cccrn pop cxrn retrnDELAY ENDP rnrna2: MOV AH,4CH ;返回rn INT 21Hrn pop cxrnyinyue:rn pop cxrnrn push cxrn mov dx,28bH ;设置8255 A口输出rn mov al,10000000Brn out dx,alrn MOV AX,DATArn MOV DS,AXrn MOV AL,0B6Hrn MOV DX,283Hrn OUT DX,ALrn LEA DI,FREQ_LrnNXT: MOV AX,34DEHrn MOV DX,0012Hrn MOV BX,[DI]rn CMP BX,0rn JZ DONErn DIV BXrn MOV DX,280Hrn OUT DX,ALrn MOV AL,AHrn OUT DX,ALrn MOV DX,288Hrn IN AL,DXrn MOV AH,ALrn OR AL,3rn MOV DX,288Hrn OUT DX,ALrn INC DIrn INC DIrn MOV BX,[DI]rn CALL DLAYrn INC DIrn INC DIrn MOV AL,AHrn OUT DX,ALrn CALL DLAY2rn JMP NXTrnDONE: MOV AH,4CHrn INT 21HrnrnDLAY PROCrn PUSH AXrnAGAIN1: MOV CX,16578rnAGAIN: IN AL,61Hrn AND AL,10Hrn CMP AL,AHrn JE AGAINrn MOV AH,ALrn LOOP AGAINrn DEC BLrn JNZ AGAIN1rn POP AXrn RETrnDLAY ENDPrnrnDLAY2 PROCrn MOV CX,1328rnREPEAT1:rn IN AL,61Hrn AND AL,10Hrn CMP AL,AHrn JE REPEAT1rn MOV AH,ALrn LOOP REPEAT1rn RETrnDLAY2 ENDPrnpop cxrn rn mov al,20hrn out 20h,alrn loop nextrn in al,21hrn or al,08hrn out 21h,alrn stirn mov ah,4chrn int 21hrnnext:rn iretrn code endsrn end startrn
关于流迭代器,代码如下,求大神
#includern#includern#includern#includern#includern#includernusing namespace std;rnmain()rnrn fstream in;rn string filename;rn cin>>filename;rn in.open(filename.c_str());rn if(in)rn ostream_iterator output(cout," ");rn istream_iterator out(cin),eof;rn ostream_iterator is(in);rn istream_iterator po(in);rn vector them;rn while(out!=eof)rn rn *is++=*out++;rn rn copy(po,eof,output);rn rn elsern cout<<"no";rn in.close();rnrnrnrnrn为什么无法实现向同一个文件里进行输入和输出(即文件里不能存入,输入的想要储存的内容)
求把这段ASP的代码改为ASP.NET的.
求把这段ASP的代码改为ASP.NET的,这段代码是个ASP的函数,现在要改成ASP.NET的后台代码方法. 谢谢了!!rn[code=VBScript]<%rnsub showphotorn dim ArticleNum,rsArticleList,sql,prestat,ahtml,bhtml,stat1,stat2,stat3,ArticleNum2,LastActivity_name,acitemrn ArticleNum=0rn stat3=0rnsql="SELECT * FROM LimitPro where not (activity_name like '合同%') and item_key='"&itemkey&"' order by begin_date,end_date"rnset rsArticleList=server.CreateObject ("Adodb.recordset")rnrsArticleList.open sql,conn,1,1rndo while not rsArticleList.eofrn if ArticleNum=0 thenrn if rsArticleList("Arcstat")=30 or trim(rsArticleList("Fields"))<>""thenrn ahtml=""rn elseif trim(rsArticleList("Fields"))<>"" and not isNull(rsArticleList("id")) thenrn ahtml=""rn elsern ahtml=""rn end ifrn bhtml=""rn elsern if ArticleNum>0 thenrn if stat1=1 and (rsArticleList("Arcstat")<=30) and trim(rsArticleList("Fields"))<>"" thenrn ahtml=ahtml&""rn elseif stat1=2 and trim(rsArticleList("Fields"))<>"" thenrn ahtml=ahtml&""rn elseif stat1=1 and trim(rsArticleList("Fields"))="" thenrn ahtml=ahtml&""rn elsern ahtml=ahtml&""rn end ifrn bhtml=bhtml&" end ifrn end ifrn if rsArticleList("Arcstat")=30 and rsArticleList("Fields")<>"" thenrn ahtml=ahtml&""rn ahtml=ahtml&rsArticleList("Activity_name")&""rn stat1=1rn else rn if not isNull(rsArticleList("id")) and trim(rsArticleList("Fields"))="" thenrn ahtml=ahtml&""rn stat1=2rn elseif trim(rsArticleList("Fields"))<>"" thenrnahtml=ahtml&" "rn stat1=1rn else ahtml=ahtml&""rn stat1=3rn end if ahtml=ahtml&rsArticleList("Activity_name")&""rn end if bhtml=bhtml&""&rsArticleList("User_Name")&""rn LastActivity_name=rsArticleList("Activity_name")rn ArticleNum=ArticleNum+1 rn rsArticleList.movenextrn loop rn '注stat1=1 黄 'stat1=2  绿 'stat1=3  灰 rn ArticleNum2=0 rn sql="select * from limitClass where not (ClassName like '合同%') and orderid>(select orderid from limitClass where Pro_name ='"&rs("PRO_NAME")&"' and ClassName='"&LastActivity_name&"') and (Pro_name ='"&rs("PRO_NAME")&"') and ClassName not in (SELECT distinct Activity_name FROM LimitPro WHERE deleted =0 and (ITEM_KEY = '"&rs("item_key")&"')) order by RootID, OrderID" rn set rsArticleList=server.CreateObject ("Adodb.recordset")rn rsArticleList.open sql,conn,1,1rn do while not rsArticleList.eofrn if ArticleNum2=0 thenrn if stat1=1 thenrn ahtml=ahtml&""rn elseif stat1=2 thenrn ahtml=ahtml&""rn elsern ahtml=ahtml&""rn end if rn bhtml=bhtml&""rn else rn ahtml=ahtml&""rn bhtml=bhtml&""rn stat1=3rn end if rn if ArticleNum>0 thenrn ahtml=ahtml&""&rsArticleList("ClassName")&""rn bhtml=bhtml&" "rn stat1=3rn end ifrn ArticleNum=ArticleNum+1rn ArticleNum2=ArticleNum2+1 rn rsArticleList.movenextrn Looprn if stat1=1 thenrn ahtml=ahtml&""rn elseif stat1=2 thenrn ahtml=ahtml&""rn else ahtml=ahtml&""rn end if rn if ArticleNum2=0 thenrn bhtml=bhtml&""rn else bhtml=bhtml&""rn end ifrnif ArticleNum=0 thenrn ahtml=""rn bhtml=""rnend if rnacitem=ArticleNumrnArticleNum=0rnArticleNum2=0rnahtml=ahtml&" "rnbhtml=bhtml&" "rnrsArticleList.closernsql="SELECT * FROM LimitPro where (activity_name like '合同%') and item_key='"&itemkey&"' order by begin_date,end_date"rnset rsArticleList=server.CreateObject ("Adodb.recordset")rnrsArticleList.open sql,conn,1,1rndo while not rsArticleList.eofrn if ArticleNum=0 thenrn if rsArticleList("Arcstat")=30 or trim(rsArticleList("Fields"))<>""thenrn ahtml=ahtml&""rn elseif trim(rsArticleList("Fields"))<>"" and not isNull(rsArticleList("id")) thenrn ahtml=ahtml&""rn elsern ahtml=ahtml&""rn end if rn bhtml=bhtml&""rn elsern if ArticleNum>0 thenrn if stat1=1 and (rsArticleList("Arcstat")<=30) and trim(rsArticleList("Fields"))<>"" thenrn ahtml=ahtml&""rn elseif stat1=2 and trim(rsArticleList("Fields"))<>"" thenrn ahtml=ahtml&""rn elseif stat1=1 and trim(rsArticleList("Fields"))="" thenrn ahtml=ahtml&""rn elsern ahtml=ahtml&""rn end ifrn bhtml=bhtml&""rn end ifrn end ifrn if rsArticleList("Arcstat")=30 and rsArticleList("Fields")<>"" thenrn ahtml=ahtml&""rn ahtml=ahtml&rsArticleList("Activity_name")&""rn stat1=1rn else rn if not isNull(rsArticleList("id")) and trim(rsArticleList("Fields"))="" thenrn ahtml=ahtml&""rn stat1=2rn elseif trim(rsArticleList("Fields"))<>"" thenrnahtml=ahtml&" "rn stat1=1rn elsern ahtml=ahtml&""rn stat1=3rn end ifrn ahtml=ahtml&rsArticleList("Activity_name")&""rn end ifrn bhtml=bhtml&""&rsArticleList("User_Name")&"" LastActivity_name=rsArticleList("Activity_name")rn ArticleNum=ArticleNum+1 rn rsArticleList.movenextrn loop rn '注stat1=1 黄 'stat1=2  绿 'stat1=3  灰 'stat1=0 rn sql="select * from limitClass where (ClassName like '合同%') and orderid>(select orderid from limitClass where Pro_name ='"&rs("PRO_NAME")&"' and ClassName='"&LastActivity_name&"') and (Pro_name ='"&rs("PRO_NAME")&"') and ClassName not in (SELECT distinct Activity_name FROM LimitPro WHERE deleted =0 and (ITEM_KEY = '"&rs("item_key")&"')) order by RootID, OrderID"rn set rsArticleList=server.CreateObject ("Adodb.recordset")rn rsArticleList.open sql,conn,1,1rn do while not rsArticleList.eof rn if ArticleNum=0 thenrn ahtml=ahtml&""rn bhtml=bhtml&""rn elsern if stat1=1 thenrn ahtml=ahtml&""rn bhtml=bhtml&""rn elseif stat1=2 thenrn ahtml=ahtml&""rn bhtml=bhtml&""rn elsern ahtml=ahtml&""rn bhtml=bhtml&""rn end if rn end if rn ahtml=ahtml&""&rsArticleList("ClassName")&""rn bhtml=bhtml&" "rn stat1=3rn ArticleNum=ArticleNum+1rn ArticleNum2=ArticleNum2+1 rn rsArticleList.movenextrn Loop rn if ArticleNum>0 thenrn if stat1=1 thenrn ahtml=ahtml&""rn elseif stat1=2 thenrn ahtml=ahtml&""rn elsern ahtml=ahtml&""rn end if rn if ArticleNum2=0 thenrn bhtml=bhtml&""rn elsern bhtml=bhtml&""rn end ifrn end ifrn acitem=acitem+ArticleNum rn ahtml=" "&ahtmlrn response.write ahtml&bhtml&""rnend subrnsub showContentrn dim ArticleNum,rsArticleList,sqlrn ArticleNum=0rn sql="select * From LimitPro where item_key='"&itemkey&"' order by BEGIN_DATE asc,end_DATE asc "rnset rsArticleList=server.CreateObject ("Adodb.recordset")rnrsArticleList.open sql,conn,1,1 %>[/code]rn
这段代码因该怎么改?
CFile file; rn for(i=0;i<=180;i++)rn bianliang.Format("%dis%f",i,shurou[i]);rn file.Write(bianliang.GetBuffer(0), bianliang.GetLength());rn file.Write("\r\n",2);rnrn file.Close;rn编译可以通过,但是程序运行出错,删除以上代码程序可以正常运行,清高手指点rn
我该怎么改这段代码!
package com.haojava;rnimport java.util.Random;rnimport java.util.Vector;rn//从0到15之间抽取10个随机数,不能重复!~rnpublic class Sort2 public static void main(String[] args)rn rn Vector v =new Vector();rn Random a=new Random();rn//知道用contains方法很很简单就出来了,但是我的这个算法问题出在什么地方呀!rn for(int i=0;i<10;i++)rn boolean b=true;rn rn while(b)rn int k=a.nextInt(15);rn for(int j=0;j
请教这段代码该怎么改
rn现在要求指定j=1或2或3时document.getElementById("a"+j).className="li2";rn分别调用不同的在,如1时调LI1,2时调LI2,3时调LI3,ELSE下面的也是一样,1时调ULI1,2时调ULI2,……
这段代码该怎么改。。。郁闷~
[code=C#]rnprotected void Page_Load(object sender, EventArgs e)rn rn int errNum;rn string passwords;rn int status;rn //if (CheckForm())rn SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["constr"]);rn string sql1 = "select adminID, adminName, adminPwd,adminRight, errNum, status from [admin_Login] where adminName = '" + Users.Text + "'";rn sql1 = sql1.Replace("##adminName", Users.Text.Trim());rn SqlCommand com = new SqlCommand(sql1, con);rn con.Open();rn SqlDataReader sqldr = com.ExecuteReader();rnrn if (sqldr.Read())rn //从数据库中读出错误次数 密码 状态rn errNum = (int)sqldr["errNum"];rn passwords = sqldr["adminPwd"].ToString();rn status = (int)sqldr["status"];rn rn elsern rn return;rnrn rnrn if (errNum > 3)//判断错误次数是否超过3次,如果超过3次,则将数据库中状态置为1rn rn Response.Write(" ");rn sql1 = @"update [admin_Login] set status=1 where errNum>3";rn rn elsern //判断用户输入密码与数据库中密码是否一致rn if (sqldr["adminPwd"].ToString() == Pwd.Text.Trim())rn rn if (status == 0)//判断用户状态是否为0,为0则成功登录,为1则为无效账户rn rnrn MessageBox.Show("登录成功!");rn sql1 = @"update [admin_Login] set errNum=0 where status=0";//若登录成功,则将errNum次数置为0rnrnrn rn elsern rn Response.Write(" ");rn rn rn elsern rn errNum++;//如果密码输入错误,则在数据库中将错误次数加一次rn sql1=@"update [admin_Login] set errNum = errNum+1";rn rnrnrn rnrn rnrn protected void imgLogin_Click(object sender, ImageClickEventArgs e)rn rn this.Label1.Text = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(this.Pwd.Text.Trim(), "md5");rn string username = Users.Text.ToString();rn string password = Pwd.Text.ToString();rnrn if (username == "" || password == "")rn rn Response.Write(" ");rn rn elsern rn SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["constr"]);rn string sql = "select * from admin_Login where adminName='" + Users.Text + "'and adminPwd='" + Pwd.Text + "'";rn SqlCommand sqlcmd = new SqlCommand(sql, conn);rn conn.Open();rn SqlDataReader dr = sqlcmd.ExecuteReader();rn if (dr.Read())rn rn Session["Users"] = dr["adminName"].ToString();rn Response.Redirect("../main.aspx");rn dr.Close();rn conn.Close();rn rn elsern rn Response.Write(" ");rn Users.Text = "";rn Users.Focus();rn rn rn rn[/code]rnrnrn我想实现密码输入三次账户就冻结,可是怎么都实现不了啊。。输了五六次还是提示密码错误。rn数据库好像也没有读取到~ 老半天了没半点进展 检查不出错误在哪 菜鸟求救!!!
生成客户端代码出错,求大神帮助!
rpc/encoded wsdls are not supported in JAXWS 2.0rn生成客户端代码出现此错误,如何解决
代码如下:我错在哪里,该怎么改!请高手指点
SELECT *rnFROM (SELECT TOP 100 PERCENT *rn FROM dbo.YgfyTbrn WHERE (BxTime >= '2005-6-4') AND (BxTime <= '2005-7-4') AND (Zy LIKE '%s%')rn ORDER BY Id) ArnWHERE (id INrn (SELECT MAX(id)rn FROM Arn GROUP BY Bxdh))rn系统提示,A 对象无效
求改写一小段代码
winio.dll到下面下载rnhttp://www.internals.com/utilities/winio.ziprn全部代码在http://jackyhwk.139.com/article/699015.htmlrn我只会会写vb或C#代码,对于上面的文章改写了,不成功,只有几行,请哪位高手帮帮忙改成 vb或C#代码rnrn附关键的几行rnprocedure SetKey(SCanCode: byte);rnbeginrnasmrn//无论向0x60,还是0x64写东西前都要等状态寄存器OBF变0rn@Loop1:rnin al, $64rnand al, 01brnjnz @Loop1rn//向$64端口写命令rnmov al, $D2//写键盘输出缓存命令rnout $64, alrnrn//无论向0x60,还是0x64写东西前都要等状态寄存器OBF变0rn@Loop2:rnin al, $64rnand al, 01brnjnz @Loop2rn//向$60端口写参数rnmov al, SCanCodernout $60, alrnend;rnend;rnrn模拟非扩展键:rnSetKey($1F);//make codesrnSleep(25);rnSetKey($9F);//break codernrn模拟扩展键:rnSetKey($E0);//因为这是一个扩展键rnSetKey($4B);//make codesrnSleep(25);rnSetKey($E0);//因为这是一个扩展键rnSetKey($CB);//break codern模拟鼠标的类似。rn载入驱动:InitializeWinIorn卸下驱动:ShutdownWinIorn终于搞定了rnrnLoop:rnin al, 0x64rnand al, 10brnjnz Looprn大功告成rnrnrnSetKey(0x09);//左键按下rnSetKey(0x00);rnSetKey(0x00);rnSetKey(0x00);rnSetKey(0x08);//左键放开rnSetKey(0x00);rnSetKey(0x00);rnSetKey(0x00);rnrnrn
改写代码
求做一个数据库access备份的窗体rnrn[color=#FF0000]要求[/color]:就是把先打开正在使用的数据库,并显示其位置rn 然后打开要保存到的位置。单击“开始备份”命令按钮,执行备份命令。rnrnrn[color=#FF0000]窗体上所有控件[/color]:一个“开始备份”命令按钮,一个对话框(用于选择当前使用数据库的位置),一个对话框(选择要保存到的位置),一个“取消”命令按钮。[color=#0000FF]注:可以根据改写需要自行添加控件。[/color]rnrnrn[color=#FF0000]代码:把下面代码改一下就可以了,改成如上要求。[/color]rnrn[code=VB]'用VB编写自动备份文件程序rn--------------------------------------rnrnPublic Sub BackupFile(Filename As String, Drive As String, Folder As String)rnDim Fso As New FileSystemObject '创建 FSO 对象实例rnDim Dest_path As String, Counter As LongrnDim StrDay As String, StrMonth As String, NewFilename As StringrnrnCounter = 0rnDo While Counter < 6 '如果驱动器没准备好,继续检测。共检测 6 秒rnCounter = Counter + 1rnCall Waitfor(1) '间隔 1 秒rnIf Fso.Drives(Drive).IsReady = True ThenrnExit DornEnd IfrnLooprnIf Fso.Drives(Drive).IsReady = False Then '6 秒后目标盘仍未准备就绪,退出rnMsgBox " 目标驱动器 " & Drive & " 没有准备好! ", vbCriticalrnExit SubrnEnd IfrnIf Fso.GetDrive(Drive).FreeSpace < Fso.GetFile(Filename).Size ThenrnMsgBox "目标驱动器空间太小!", vbCritical '目标驱动器空间不够,退出rnExit SubrnEnd IfrnIf Right(Drive, 1) <> ":" ThenrnDrive = Drive & ":"rnEnd IfrnIf Left(Folder, 1) <> "\" ThenrnFolder = "\" & FolderrnEnd IfrnIf Right(Folder, 1) <> "\" ThenrnFolder = Folder & "\"rnEnd IfrnIf Day(Date) < 10 ThenrnStrDay = "0" & Day(Date)rnElsernStrDay = Day(Date)rnEnd IfrnIf Month(Date) < 10 ThenrnStrMonth = "0" & Month(Date)rnElsernStrMonth = Month(Date)rnEnd Ifrn'Fso.FileExists ()rnNewFilename = "newfilename"rnDest_path = Drive & FolderrnIf Not Fso.FolderExists(Dest_path) Then '如果目标文件夹不存在,创建之rnFso.CreateFolder Dest_pathrnEnd IfrnFso.CopyFile Filename, Dest_path & NewFilename, Truern'拷贝,直接覆盖同名文件rnSet Fso = NothingrnEnd SubrnPrivate Sub Waitfor(Delay As Single) '延时过程,Delay 单位约为 1 秒rnDim StartTime As SinglernStartTime = TimerrnDo Until (Timer - StartTime) > DelayrnLooprnEnd SubrnrnPrivate Sub Form_Load()rnBackupFile "filename", "d:", "filebackupdir"rnEndrnEnd Sub[/code]
汇编语言的 代码求注释
;..............出题............ rnquestion proc farrn push cxrn mov ah,2chrn int 21hrn mov ax,0rn mov al,dlrn cbwrn mov [value1],dlrn call severrn rn mov si,3000hrndelay1:rn mov di,0f300hrnloopdi1:dec dirn jnz loopdi1rn dec sirn jnz delay1rn rn mov dl,'+'rn mov ah,02hrn int 21hrn rn mov ah,2chrn int 21hrn mov ax,0rn mov al,dlrn cbwrn mov [value2],dlrn call severrn mov dl,'='rn mov ah,02hrn int 21hrn pop cxrn retrnquestion endprnrn;.....分离两位数 并以字符形式输出....rnsever proc farrn push cxrn mov bl,10rn div blrn mov bx,axrn mov dl,blrn add dl,30hrn mov ah,02hrn int 21hrn mov dl,bhrn add dl,30hrn mov ah,02hrn int 21hrn pop cxrn retrnsever endprnrnCODES ENDSrn END STARTrnrn求高手注释。在线等。越详细越好。谢谢了
求高手改写一下代码,
下面的代码用到了 javax.sound.sampled,有没有办法不使用javax.sound.sampled,直接用android sdk支持的包改写呢?rnrn[code=Java] public void run()rn rn final AudioFormat audioFormat = new AudioFormat(8000f /*sample rate*/,rn 16 /*sample size in bits*/, 1 /*channels*/, true /*signed*/, true /*big endian*/);rn final DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);rn rn tryrn rn final TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);rn rn // opens line if necessaryrn if (!targetDataLine.isOpen())rn rn targetDataLine.open();rn rn // starts data linern targetDataLine.start();rn rn Thread capture = new Thread(new Runnable()rn rn public void run()rn rn while (!stopped)rn rn byte[] buf = new byte[512];rn rn int offset = 0;rn rn while (offset < buf.length)rn rn offset += targetDataLine.read(buf, offset, buf.length - offset);rn rn rn encode(buf);rn rn rn );rn rn capture.start();rn rn while (!stopped)rn rn tryrn rn Thread.sleep(1 * 1000);rn rn catch (Exception e) /*ignore*/rn rn rn catch (Exception e)rn rn e.printStackTrace();rn rn [/code]
j2me中的代码改成android代码,求大神帮助
public static void drawRegion(Graphics g, Bitmap src, int x_src, int y_src,rn int width, int height, int transform, int x_dest, int y_dest,rn int anchor) rn[u]rn [b]g.drawRegion(src, x_src, y_src, width, height, transform, x_dest,rn y_dest, anchor);[/b][/u] rn rn求把这句话改成android代码,差不多相同的功能rn rnrnanchor---->锚点
求如下代码及详解
我想要实现如下功能,请问高手应该要怎么弄rn有3个memo,其中memo1是用来读取文本的,内容有A,B字段(如a123b111)rnmemo2用来存取a...字段rnmemo3用来存取b...字段rn请问如何在memo1中将a...b...区分开?并分别存取?rnrn谢谢!rn
求代码效果如下
[color=#FF0000]http://p.blog.csdn.net/images/p_blog_csdn_net/j_jake/22.jpg 上面这个是个效果图 接下来我们来看实现思路:其实说起来很简单,我们在这里将采用模板列,在模版列里拖入一个label控件来进行数据绑定,它的text属性绑定的时候用一个条件表达式来判断是全部绑定标题文字还是只绑定部分标题文字+省略号;它的tooltip属性就直接绑定标题字段,这样我们的鼠标移上去就可以显示标题的全部内容了,绑定代码如下:从上面的代码可以看出,我绑定Label控件的Text属性的时候用了条件表达式,当数据库中的标题长度大于16时,则截取前16个字符加上省略号进行显示,当小于16时,就全部绑定.ToolTip属性直接帮定标题字段,鼠标移上去就可显示全部标题了。(题外话,如果你作的是新闻发布系统,你也可以在Text属性的后面再加上一个发布日期的绑定字段,这样标题,日期全出来聊,呵呵,可以灵活应用,举一反三)[/color]用的是Gridview绑定
求解密如下代码
小弟在网页上看到这样一段htm代码rn rnrnrn显然是加密过的,请问哪位大神告诉我如何解密呢?谢谢[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/2.gif][/img]
求大神帮助,初学C++,遇到问题如下
[img=http://img.my.csdn.net/uploads/201211/15/1352970748_8284.gif][/img]rn初次使用Visual C++ 编译器 ,不会使用,希望朋友能进一步帮帮我,谢了。
请指出如下代码错在那里?怎么改?
主程序:rn MenuRec=recordrn menuid:pchar;rn menuname:pchar;rn menutxt:pchar;rn menut:pchar;rn mennts:integer;rn menui:integer;rn menuf:pchar;rn end;rn TRMenu = function():MenuRec;rnrnvarrn Form1: TForm1;rn h:HMODULE;rn RMenu:TRmenu;rn b:PChar;rn MenuR:MenuRec;rnrnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn h:=loadlibrary(pchar('C:\DELPHI程序\aaa\dll\project1.dll'));rn RMenu:=GetProcAddress(h,'RMenu');rn MenuR:=RMenu;rn freelibrary(h);rnend;rnrnDLL:rntypern MenuRec=recordrn menuid:pchar;rn menuname:pchar;rn menutxt:pchar;rn menut:pchar;rn mennts:integer;rn menui:integer;rn menuf:pchar;rn end;rnfunction RMenu:MenuRec;stdcall;rnvar aa:MenuRec;rnbeginrn aa.menuname:='database2';rn aa.menutxt:='database2';rn aa.menut:='data';rn aa.mennts:=1;rn aa.menui:=2;rn aa.menuf:='dll1.dll';rn result:=aa;rnend;rnrn错误:“Access Violation at address 00000000.Read of address 00000000.rnrn”。
怎么改才能结束线程(代码如下)!
这是一个类里面的三个方法!rnstop()不能用;rn public void play()rn rn rn if(BasicPlayer.isStop&&BasicPlayer.isActive)rn basicPlayer=new BasicPlayer(soundFile);rn thread=new Thread(basicPlayer);rn rn thread.start();rn else if(!BasicPlayer.isStop&&!BasicPlayer.isActive) rn BasicPlayer.isActive=true;rn rn rn rn rn //暂停rn public void pause()rn if(!BasicPlayer.isStop&&BasicPlayer.isActive)rn BasicPlayer.isActive=false;rn rn rn rn //停止rn public void Stop()rn if(!BasicPlayer.isStop)rn rn thread.stop();rn BasicPlayer.isStop=true;rn return;rn rn
帮忙将如下vb代码改写为vc代码
Private Sub Command7_Click()rn On Error Resume Nextrn If Trim(Combo2.Text) = "" Thenrn Exit Subrn End Ifrn If Command7.Caption = "读AD(&D)" Thenrn iNe = 1rn With Timer1rn .Interval = CInt(Trim(Combo2.Text))rn .Enabled = Truern End Withrn Command7.Caption = "停止读AD(&O)"rn Exit Subrn End Ifrn If Command7.Caption = "停止读AD(&O)" Thenrn Timer1.Enabled = Falsern Command7.Caption = "读AD(&D)"rn End IfrnEnd SubrnrnSub ReadAD()rn '----------------------rn '读AD数据rn '----------------------rn Dim iArr(1 To 16) As Bytern Dim sL(1 To 2) As Integerrn Dim jm As Integerrn Dim Low As Integer, hig As Integerrn Dim Add As String, Data As Stringrn On Error Resume Nextrn If iNext = 0 Thenrn iNext = 1rn End Ifrn Image3.Visible = Falsern For i = 1 To 1000rn DoEventsrn Next irn iNe = iNe + 1rn Image3.Visible = Truern sInt = USB_ReadADOnce(iArr(1), sL(1))rn jm = 1rn Text1.AddItem "读AD:" & iNe & "次 返回:" & sInt & " 读到的数据长度:" & sL(1)rn Call iRemovelistrn For i = 1 To sL(1) Step 2rn Low = iArr(i)rn hig = (iArr(i + 1) And &HF) * 256rn Text1.AddItem "通道" & jm & " " & Low + higrn Call iRemovelistrn Label4(jm).Caption = Low + higrn jm = jm + 1rn Next irn Call iRemovelistrnEnd SubrnrnPrivate Sub Timer1_Timer()rn Call ReadADrnEnd Subrnrnrn另:听说VC++可以将.frm转化为.rc,请问如何转化,谢谢
求帮忙看看怎么改代码
[code=sql]rncreate PROC P_DeleternASrnBEGINrnDECLARE @p_id INTrnSELECT @p_id = id FROM node WITH(NOLOCK) WHERE tablename = 'source_1'rnDELETE TOP(1000) depart WHERE id < @p_idrnreturn @@ROWCOUNTrnENDrnGOrnrnWHILE(@@ROWCOUNT=1000)rnEXECUTE P_Deleternprint @@ROWCOUNTrn[/code]rn存储过程要实现删除dept表里id小于node表中tablename为source_1的p_id的所有数据,循环执行存储过程直到删除完毕rn我的代码在循环部分有问题,求各位指点
ACIS代码求大神
ACIS可编译不能运行 运行出来的文件0字节 void main() { api_start_modeller(0); api_initialize_constructors(); BODY*block; api_make_cuboid(100, 50, 200, block); FILE *output = fopen(“cube.dbg”, “w”); debug_size(block, ou...
求大神编个代码
[img=https://img-bbs.csdn.net/upload/201711/19/1511106057_547847.gif][/img]
求大神解释一下代码
[code=vb]Dim sysYearrnSet sysYear = HMIRuntime.Tags("sysYear")rnHMIRuntime.Trace"Value:" &sysYear.Read(1)&vbCrLf[/code]rn这里set的用法?rn还有就是最后一句的意思 我是新手 只有一点点vb底子,求大神指导啊rnrn
求大神赐代码
[img=https://img-bbs.csdn.net/upload/201403/22/1395502069_764964.jpg][/img]rn如何从表score中choiceanswer字段的值进行查询表choice得出与之匹配的总数,choiceanswer的数字对于ID,字母对应right。rnrn
求大神转个代码
求大神把下面的C#代码转为VB.NET代码。rn用工具转下的不能用,里面有个委托。不太会转了。请高手帮忙!rnrnprivate static void KengenMenu(string parent, List table, int level, List list)rnrn foreach (Kengen mdl in list.FindAll(delegate(Kengen p)rn rn return p.ParentD.Id == parent;rn ))rn rn rn rn
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数