请求各位大佬帮我看看这串代码有什么问题啊? [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
帮我看这代码
#include rnvoid main()rnrn int a[5][5]=2,1,2,1,1,3,2,1,2,1,0,2,1,2,1,rn 1,2,3,4,1,1,2,2,2,1;/*定义一个5*5的房间,里面装满金币*/rn int sum=2,m=0,k=0; /*站在第一个房间得到2个金币*/rn while((ma[k][m+1])/*只能朝下和朝右走*/rn rn sum=sum+a[k+1][m]; /*2 1 2 1 1*/rn printf("go m:%d\t",a[k+1][m]); /*3 2 1 2 1*/rn k++; /*0 2 1 2 1*/rn /*1 2 3 4 1*?rn /*1 2 2 2 1*/rn elsern sum=sum+a[k][m+1];rn printf("go k:%d\t",a[k][m+1 ); /*选择金币多的房间走*/rn m++;rnrn printf("%d\n",sum); /*打印得到多少金币*/rn rn getch();rnrn这样的一个程序,输出是:go:3 sum=5rn go:2 sum=7rn go:2 sum=9rn go:2 sum=11rn go:3 sum=14rn go:4 sum=18rn go:2 sum=20rn go:4198946 sum=4198966rn我怎么想不出来最一个go:4198946 sum=4198966 是怎么出现的呢? 是哪里出错了,这个<em>代码</em>可以精简吗?
帮我看这代码什么问题?
<em>帮我</em>看<em>看这</em><em>代码</em>有<em>什么问题</em>?rn#include rn//#include rn//using namespace std;rnrnmain()rnrn clrscr();rn //cout<;rn
帮我看这代码什么问题
这是一段关于位图菜单的<em>代码</em>,可是总有错误,大家<em>帮我</em>看看吧,谢谢了rnCMainFrame::~CMainFrame()rn//舔加的<em>代码</em>rnif(m_checkBitmap.m_hObject)rn m_checkBitmap.DeleteObject();rnif(m_unCheckBitmap.m_hObject)rn m_unCheckBitmap.DeleteObject();rnrnrnint CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)rnrn if (CFrameWnd::OnCreate(lpCreateStruct) == -1)rn return -1;rn //舔加的<em>代码</em>rn m_checkBitmap.LoadBitmap(IDB_CHECK);//从资源中装载位图rn m_unCheckBitmap.LoadBitmap(IDB_UNCHECK);rn CMenu* pTopMenu=GetMenu();rn pSubMenu=pTopMenu->GetSubMenu(3);rn pSubMenu=SetMenuItemBitmaps(1,MF_BYPOSITION,&m_checkBitmap,&m_unChecKBitmap);rn //舔加完毕
帮我看这代码什么问题
帮我看这几行代码什么问题
Replace的用法rn比如 var a="abbbbbbaaaa";rn 如果我想去掉其中所有的b;rn我用Replace();rn a.Replace("b");rn这样做 rnrnrn function aa()rn rn var a="abbbbbbaaaa";rn s=a.Replace("a");rn document.write(s);rn rnrnrn我是用JAVASCRIPT写的 这里有<em>什么问题</em>吗rn <em>帮我</em>看看 报错 说什么对象不支持此类属性和方法啊 rn rnrn请问一下 JAVASCRIPT 中有Replace()这个方法吗?
帮我看这小段代码什么问题
rn老是运行不起来哦
帮我看这代码,谢谢!
这是我从一个软件的RC数据部分复制出来的一串<em>代码</em>,向大家请教一下:rnobject web_56: TWebBrowserrn Left = 312rn Top = 0rn Width = 540rn Height = 65rn ParentShowHint = Falsern ShowHint = Falsern TabOrder = 1rn OnDocumentComplete = web_56DocumentCompletern ControlData = rn 4C000000D0370000B80600000000000000000000000000000000000000000000rn 000000004C000000000000000000000001000000E0D057007335CF11AE690800rn 2B2E126208000000000000004C0000000114020000000000C000000000000046rn 8000000000000000000000000000000000000000000000000000000000000000rn 00000000000000000100000000000000000000000000000000000000rn endrn请问ControlData后面部分是通过加密还是通过什么方法得到的啊,可不可以把它还原出来?用什么方法可以还原出来?rn谢谢!
大家帮我看这句话有什么问题
')">rnrn关键是OnClientClick这句,我要点击这个linkbutton后,向frame=content的页面传递InfoID这个参数,该如何写,我是这样的OnClientClick="window.parent.Content.navigate('')"rn可是编译通不过,请大家<em>帮我</em>看看问题,谢谢!rn
帮我看这语句有什么问题
本来目的:当关闭帮助对话框回到单文档介面时在文档中显示“good“。rn运行时出现提示:debug assertion failed:rnvoid CHApp::OnAppAbout()rnrn CAboutDlg aboutDlg;rn aboutDlg.DoModal();rnrn char s[100]="good";rn CClientDC dc((CWnd*)this);rn dc.TextOut(100,100,s);rnrn
帮我看这程序有什么问题.....
1.在读取image里面的图片(经过图片处理)时,会出现错误,不晓的是为什么ˊˋrnrn2.可以给我一下StatusBar的例子吗(动态)?因为我想要写一个侦测动态产生的form3坐标(x,y),不是侦测父窗口的,可是偏偏是MDI,如果只是单纯的Form是没问题的..rnrn3.一样是动态的问题,假如说我要存动态开启的图片,经过处理完后,要怎样写才能存!rnrn因为我是BCB的新手,可能问这些问题有点...请大家多多包涵,最后谢谢大家!rnrn补充网址:[url=http://www.xun6.net/file/e85572c22/DIP-MDI%28BCB%29.rar.html][/url]
帮我看这断程序有什么问题
sub Page_loadrn if Not IsPostBack Thenrnrn dim conDwqk As SqlConnectionrn dim cmdSelect As SqlCommandrn dim dtrDwqk As SqlDataReaderrnrn conDwqk=New SqlConnection("Server=home;uid=sa;pwd=dayongch;database=lncomputer")rn cmdSelect=New SqlCommand("select * from Dwqk",conDwqk)rnrn conDwqk.open()rn dtrDwqk=cmdSelect.ExecuteReaderrnrn dropDwqk.DataSource=dtrDwqkrn dropDwqk.DataTextField="dw_mc"rn dropDwqk.Databind()rnrn radDwqk.DataSource=dtrDwqkrn radDwqk.DataTextField="dw_mc"rn radDwqk.DataBind()rnrn rn rn dtrDwqk.close()rn conDwqk.Close()rnrn end ifrnrnend subrnrnrn难道不能同时显示两个控件的绑定吗?rn我的程序只能显示最上面的一个,为什么?rn
帮我看这程序有什么问题
[code=C/C++][/code]rn//声明翻译rn#includern#includernint right,left,i=0; rnint maxtop;rnstruct astackrn char type,str[30];rntoken[30];rnvoid main()rnrnint i;rnchar stack[100];rnvoid deal_function_arr();rnvoid deal_declarator();rnvoid deal_point();rnvoid classify_string(char *);rnint find_mark();rnprintf("请输入要翻译的声明\n");rngets(stack);rnclassify_string(stack);rnprintf("%d",maxtop);rnfor(i=0;i=0)rn rn for(;strcmp(token[right].str,")");right++)rn ;rn if(right=0)rn if(token[left].type=='T')rn for(;token[left].type=='T';left--)rn printf("%s\n",token[left].str);rn rn left=left-1;//使left停在最前一个type=='T'rn deal_function_arr();rn rn rn rnvoid deal_point()//处理指针rnrn void deal_declarator();rn --left;rn for(;token[left].type=='q';left--)rn rn if(!strcmp(token[left].str,"*")&&i==0)rn rn printf("%s is指针指向",token[find_mark()].str);rn i=1;rn rn else if(!strcmp(token[left].str,"*")&&i)rn printf("指针指向");rnrn if(!strcmp(token[left].str,"const"))rn printf("%s 是const",token[find_mark()].str);rn rn deal_declarator();rn rnrnvoid classify_string(char*str)rnrn int i=0,j=0,f=0;rn maxtop=0;rn while(*str!='\0')rn rn if(*str==' ' || *str=='*' || *str=='(' || *str==')'||*str=='['||*str==']')rn rn j=0,i++;rn if(*str==' ')rn ++str,f=0;rn else if(*(str-1)==' ')rn i--;rn token[i].str[j]=*str++,f=1;rn rn else if(f==1)rn i++;rn token[i].str[j++]=*str++,f=0;rn rn maxtop=i+1;rnfor(i=0;i
帮我看这句话有什么问题
cn.ConnectionString = "DRIVER=SQL Server;Server=ZJSQL; UID=sa;PWD=;DATABASE=MBK"rn我用ADO连接SQL Server,大家<em>帮我</em>看<em>看这</em>句话对不对,“Server=计算机名”吗
谁给我看看这代码什么问题???
为什么程序每次都会执行out.print(" ");rnrn问题出在哪啊???rnrn
看这几行代码什么问题
程序功能是在运行中手工改变控件背景色rnprivate:rn COLORREF m_bkcolor; //控件背景色rn COLORREF inrgb[16]; rn COLORREF outrgb[16];rn rn HBRUSH m_bkbrush; //用于OnCtlColor中返回的刷子rn HBRUSH m_inbrush[16];rn HBRUSH m_outbrush[16];rnrnvoid CGraphic::OnInitialUpdate() rnrn CFormView::OnInitialUpdate();rn rn // TODO: Add your specialized code here and/or call the base class //创建刷子rn m_bkbrush=CreateSolidBrush(m_bkcolor);rn for(int i=0;i<16;i++)rn rn delete[] m_inbrush[i]; //请问从这里开始是不有问题?rn m_inbrush[i]=NULL; // 我在多拖动几次窗口后,程序就出错了 rn delete[] m_outbrush[i]; // 能否这样用 delete[] m_inbrush[i]; rn m_outbrush[i]=NULL; //rn m_inbrush[i]=CreateSolidBrush(inrgb[i]); // rn m_outbrush[i]=CreateSolidBrush(outrgb[i]); //rn rnrnvoid CGraphic::OnDraw(CDC* pDC) rnrn createshowbrush();rnrnHBRUSH CGraphic::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) rnrn ........rnrn
请帮忙看看这代码?有什么问题
下面是查询的<em>代码</em>:一运行就说Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' rnODBC 驱动程序不支持需要的属性。 rn/chk.asp, 行18 rn请问应该怎样改啊,请大家帮忙,急用!rnrnrn rn rn rn rn 查询结果rnrnrnrnrnrn rn rnrn rn rn  rn rn   rn rn  rn rn  rn rn  rn rn  rn rnrnrnrnrnrnrnrn
看这代码什么问题,很短的!
rnrnrn rn请输入SQL陈述: rnrn执行rnrnrnrn rnrnrn运行<em>代码</em>,报错!说ADOConnection和ADOCommand没定义!是<em>什么问题</em>呢?请指教!
看这代码什么问题?(急!!!!!)
rn 分类<em>代码</em>rn rn rn >rn rn rn rn rn 资产编号 rn rn readonly> rn rn提示的错误是:Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)rn所出错的行是:rs4flag="select zcbh from capital where fldm=&m order by zcbh"rn该怎么样改正才行呢?麻烦大家了!!!!!
帮看看这两行代码什么问题
public class HelloWorldApp rn public static void main (String args[])rn System.out.println("Hello World!");rn rn rn  
帮我看这代码
int * getstr()rnrn int aa=30;rn return &aa;rnrnrnvoid main()rnrn int * bbb=getstr();rn printf("%d",*bbb);rn getch();rnrnrn你说aa被释放了吗???打印的数据是不是一个不稳定的结果???
帮我看这代码
#includernmain()rnrn int a,b;rn a=8;rn b=a*a; rn printf("%d%d",b);rnrnrnrn为什么会输出640?rn请指教,谢谢!
看这句话有什么问题!!!
if ((fields[i].fieldType == 2) && (((TextBox)placeHolder.FindControl("tbx" + fields[i].fieldName + "1")).Text != "") && (((TextBox)placeHolder.FindControl("tbx" + fields[i].fieldName + "2")).Text != ""))rnrn
大家帮我看这几行代码什么问题
import java.util.*;rnpublic class Countfingers rnrn public static void main(String[] args)rn rnrn while(true)rn rn Scanner ms=new Scanner(System.in);rn int i=0;//哪个手指rn System.out.print("说个数给这小姑娘数吧,免得她闲的蛋疼"+"\n");rn int n=ms.nextInt();//要数的数字rn int h=0;//减去首行后数字所在的行数rn int j=0;//余数(即要数的数的位置)rn int k=0;rn if(n);rn rn rn rn rnrn这是CSDN那个十月挑战题,数手指的,我电脑用的eclipse,自己测试很多次了,没有出现问题,但是挑战交源码的时候,编译运行也没问题,就是在提交运行后,挑战失败,输出的结果错误!我又反复在电脑运行了很多次,都没错!对了,可输入的数字是1000000000以内,超过了就出错了!那么问题又来了,这怎么解决?之前是超过9999就出错了,后来把println改成print才到1000000000的!rn我是刚学java的大二转专业的菜鸟,没接触过其他语言,大家多关照啊!
帮我看这一行代码什么问题,谢谢您!!
cm.Parameters.Add(new OdbcParameter("@ID",OdbcDbType.Char,10))有问题(我是通过ODBC连的Sybase数据库)。请问我错在哪里?在程序的最开头我有以下两行<em>代码</em>:rn using System.Data.Odbc;rn using System.Data.SqlClient
请诸位帮我看这代查询代码什么问题??
varrn str :String;rnbeginrn if Combobox1.Text='开支类型' then str:='datalx';rn if ComboBox1.Text='使用项目' then str:='dataname';rn if ComboBox1.Text='金额' Then Str :='Datamoney';rn if ComboBox1.Text='备注' Then Str :='Databz';rnrnrn with DataModule1.ADOfind dorn beginrn Close;rn SQL.Clear;rn SQL.Add('select * From data where');rn SQL.add(str);rn SQL.add('=');rn SQL.add(combobox3.Text);rn open;rn end;
谁给我看看这IF有什么问题???
有这个IF语句程序执行就出错,没IF就没问题,rn这IF问题出在哪呢???rn
各位大哥:帮我看这几行代码
以下都得不到汉字显示:rn1。rnwchar_t szwOne[]=L"程序员";rnprintf("%C",szwOne[0]);//MSDN说,大写C是输出宽字符。rnrn2。rnprintf("%C",'程');
各位帮我看这句话
在网上看到这样一句话:rndeclare @a datetimernset @a=getdate()rnEXEC master..xp_cmdshell 'bcp northwind.dbo.Customers out c:\001.xls -c -q -S"192.168.2.3" -U"sa" -P"imd2006"'rnrnGOrn现在我想着用变量@a代替001做文件夹,怎么试验也不行,哪位大虾<em>帮我</em>写一下。rn出结果就结帐
大家帮我看这可能是什么问题
用单片机控制手机模块gr47进行短信发送rnsend_string(buffer,10); //buffer里是“AT+CMGF=0”设置为pdu格式rndelay200(); //延迟200msrnsend_string(send,11); //send为“AT+CMGS=17”发送短信长度为17rnreceive(5); //接收rnsend_string(message,54); //message[54] ="0891683108503705F011000D91683118197499F700080002C8341A";rnrnrnfor(j=0;j)rnmessage 也发出去了。但模块却没有发出短信。rn大家<em>帮我</em>看看,哪里有问题啊,pdu 格式有问题吗?(信息中心号:13800573500 目的地:13819147997)发送hi.rn拜托大家了,多谢啊rnrnrn
帮我看这代码,谢谢!!
服务器端需要发送如下的数据:rnstruct SendDatarnrn BOOL m_bOwnsData;rn int m_iBitsPerPixel;rn int m_iWidth;rn int m_iHeight;rn unsigned char* m_pData;rn BITMAPINFO m_pBitmapInfo;rnm_SendData;rn在发送前m_bOwnsData,m_iBitsPerPixel,m_iWidth,m_iHeight,m_pBitmapInfo的内容都是知道的。rnm_pData=new char[m_iWidth*m_iHeight*m_iBitsPerPixel/8];也就是说这个结构体的大小是确定的。rn用send(sSendSocket,(char *)&m_SendData,sizeof(m_SendData));rnrnrn在客户端也同样有这样的一个结构rnstruct RecvDatarnrn BOOL m_bOwnsData;rn int m_iBitsPerPixel;rn int m_iWidth;rn int m_iHeight;rn unsigned char* m_pData;rn BITMAPINFO m_pBitmapInfo;rnm_RecvData,pm_RecvData;rnchar buffer[20000];rn在接收时,recv(sRecvSocket,buffer,sizeof(buffer));rnpm_RecvData=(struct RecvData*)buffer;rnrnrn我知道接收的时候有问题,但是不知道怎么处理。比如说,rn(1)传输过来的字节数有多少。rn(2)还有就是buffer转化为struct RecvData也有问题。m_pData不知道分配多大的空间(但是只要有m_iBitsPerPixel,m_iWidth,rnm_iHeight,m_pBitmapInfo就可以确定)。但是不转化为struct RecvData就不知道这几个数值。但是转化又会因为m_pData大小不确定rn而不能转化。rnrn这样怎么解决?rn本人菜鸟,很多基础问题没搞懂,但是又很急,谢谢大家了!!!rnrn
帮我看这两段代码
[code=Delphi(Pascal)]rnIF (DBGrid1.Focused) And (Msg.message = WM_MOUSEWHEEL) thenrn Beginrn IF Msg.wParam > 0 thenrn SendMessage(DBGrid1.Handle, WM_KEYDOWN, VK_UP, 0)rn Elsern SendMessage(DBGrid1.Handle, WM_KEYDOWN, VK_DOWN, 0);rn Handled := True;rn End; rnrn[/code]rn上面的<em>代码</em>,可以正常执行,但我想改成动态,出了点问题,请高手给指点一下:rn[code=Delphi(Pascal)]rnvarrn aComtrol:TComponent;rnbeginrn aComtrol:=TComponent(Screen.ActiveControl.Name);rn IF (aComtrolClass is TDBGrid) Thenrn Beginrn IF (TDBGrid(aComtrolClass).Focused) And (Msg.message = WM_MOUSEWHEEL) thenrn Beginrn IF Msg.wParam > 0 thenrn SendMessage(TForm(aComtrol).Handle, WM_KEYDOWN, VK_UP, 0)rn Elsern SendMessage(TForm(aComtrol).Handle, WM_KEYDOWN, VK_DOWN, 0);rn Handled := True;rn End;rn End;rnrnrnend;rnrn[/code]rn请高手指点!!!
帮我看这代码
Dim StrFile As String = Application.StartupPath & "Test.txt"rn If IO.File.Exists(StrFile) Thenrn Dim ObjReader As System.IO.StreamReaderrn ObjReader = New IO.StreamReader(StrFile)rn abc.Text = ObjReader.ReadToEnd.ToString()rn ObjReader.Close()rn Elsern MessageBox.Show(StrFile & "文件不存在", "错误")rn End Ifrnrn其中 Application.StartupPath & "Test.txt" 什么意思 为什么取得的文件是bintest.txt 而不是Test.txt
帮我看这简单的代码
我有两个窗体,Form1 Form2rnvoid __fastcall TForm1::Button1Click(TObject *Sender)rnrn if(Form2->ShowModal()==OKButton)rn Beep();rnrn这<em>代码</em>应该如何写?
帮我看这小段代码
我想在自己的网页的表格中动态显示最近更新的部份NEWS内容,内容的显示部分以“……”号END,有人给出了这样一段<em>代码</em>,可是中间有点不明白,还请大家指教一下:rnFunction CutLongStr(strInput,lLength)rn Dim str1rn Dim i,j,krn j = Len(strInput)rn k = 0rn For i = 1 To jrn str1 = Mid(strInput,i,1)rn If Asc(str1) > 0 Then '这里为什么要比较ASC的值?rn k = k + 1 '我没看明白这里的K指的是什么rn Elsern k = k + 2rn End Ifrn If k > lLength Thenrn CutLongStr = Left(strInput,i) & "..."rn Exit Forrn Elsern CutLongStr = strInputrn End Ifrn NextrnEnd Functionrn
帮我看这两句代码
extern CArray arrVariant; //确保它有10个元素rnrnCComVariant GetFirstVariant()rnrn//下面这句<em>代码</em>出现内存访问违例!为什么会这样?rn CComVariant myval = arrVarinat.GetAt(0);rn return myval;rn
帮我看这代码:CursorLocation……
ADODB.Recordset 错误 '800a0bb9' rnrn参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。 rnrn/book/asp/read.asp,行 13 ,行14,行20rn这三行都是同样的错误rnrn谢谢rnrnrn sql="SELECT * FROM flist ORDER BY ftime" rn Set rs=Server.CreateObject("ADODB.Recordset") rn这是行13 rs.CursorLocation=adUseClientrn这是行14 rs.LockType= adOpenStatic rn rs.Open sql,connstr rn rs.CacheSize=10 rn rs.PageSize=10 rn rn If Not rs.EOF Then rn这是行20 rs.AbsolutePage=intpg
帮我看这几句代码
执行到这几句时程序就会中断rnvoid CDrawView::OnLagShow()rnrn CLagShowDlg LagDlg(this);rnrnrn LagDlg.m_LagContourList.InsertColumn(0,"编号");rn LagDlg.m_LagContourList.InsertColumn(1,"误差");rnrn其中m_LagListContourList是ClistCtrl类,rn是不是这个类不能这样用啊
大佬帮我看这代码到底哪出问题了。。。
[code=c]#includern#includernint main() rn int choice;rn double pi = 3.14,r,h;rn while (1)rn printf("1-Ball\n");rn printf("2-Cylinder\n");rn printf("3-Cone\n");rn printf("other-Exit\n");rn printf("Please enter your command:\n");rn scanf_s("%d", &choice);rn if (choice < 1 || choice>3) rn break;rn rn switch (choice) rn case 1:rn printf("Please enter the radius:\n");rn scanf_s("%lf", &r);rn if (r , (1.0 / 3) * pi*r*r*h);rn break ;rn return 1;rn rn rn[/code]rnrn学校的作业....用vs2015检查没问题 可以运行 但是一提交到作业的网站就各种错误.....实在不知道怎么改了
各位大侠。帮我看这程序出现了什么问题。。?
前台界面<em>代码</em>:rnrnrn rn rn rn rn 您的位置:->系部介绍rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrn后台<em>代码</em>:rnrnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnpublic partial class ReadNews : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rn int newsid = Convert.ToInt32(Request.QueryString["id"].ToString());rn rn string setting = Convert.ToString(ConfigurationManager.ConnectionStrings["SqlServives"]);rnrn SqlConnection conn = new SqlConnection(setting);rnrn conn.Open();rn string sql = "select A.Title,A.Content,A.Time,A.Author,A.Readcishu, B.pastemName from Body A ,Pastem B Where B.pastemID = A.pastemID And A.ID =" + newsid;rnrn SqlCommand cmd = new SqlCommand(sql, conn);rn SqlDataReader dr = cmd.ExecuteReader();rn if (dr.Read())rn rn lbl_class.Text = dr["pastemName"].ToString();rn lbl_content.Text = dr["Content"].ToString();rn lbl_title.Text = dr["Title"].ToString();rn lbl_info.Text = "作者:" + dr["Author"].ToString() + " 时间:" + dr["Time"].ToString() + "阅读:" + dr["Readcishu"].ToString() + "次";rn rn int m = Convert.ToInt32(dr["Readcishu"].ToString()) + 1;rn conn.Close();rn UpdataPo(newsid, m);rn rn public void UpdataPo(int id, int m)rn rn string settings = Convert.ToString(ConfigurationManager.ConnectionStrings["SqlServices"]);rn rn SqlConnection myconn = new SqlConnection(settings);rn rn myconn.Open();rn string sql = "Update Body Set ReadCishu=" + m + " Where ID = " + id;rn rn SqlCommand mycmd = new SqlCommand(sql, myconn);rn mycmd.ExecuteNonQuery();rn rnrnrn错误信息:rn“/WebSite1”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn未将对象引用设置到对象的实例。 rn说明: 执行当前 Web <em>请求</em>期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及<em>代码</em>中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。rnrn源错误: rnrnrn行 15: protected void Page_Load(object sender, EventArgs e)rn行 16: rn行 17: int newsid = Convert.ToInt32(Request.QueryString["id"].ToString());rn行 18: rn行 19: string setting = Convert.ToString(ConfigurationManager.ConnectionStrings["SqlServives"]);rn rnrn源文件: d:\Documents\Visual Studio 2005\WebSites\WebSite1\ReadNews.aspx.cs 行: 17 rnrn堆栈跟踪: rnrnrn[NullReferenceException: 未将对象引用设置到对象的实例。]rn ReadNews.Page_Load(Object sender, EventArgs e) in d:\Documents\Visual Studio 2005\WebSites\WebSite1\ReadNews.aspx.cs:17rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43rn System.Web.UI.Control.OnLoad(EventArgs e) +73rn System.Web.UI.Control.LoadRecursive() +52rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2184rnrn rnrn
谢谢各位大哥大姐,帮我看这什么问题呀?
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14' rn[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'navigate_date descand navigate_date between '2002-1-1'and '2030-1-1'' 中。 rnrn/include/all_page_1_1.asp,行5 rn
帮我看看我的代码什么问题??????????
rnrn这段<em>代码</em>放在里面和外面多出现错误提示:缺少对象!rnrn请大家帮忙看看问题出现再哪里????谢谢!!rnrn学习,关注…………rnrn
帮我看这代码什么问题,谢谢!
<em>帮我</em><em>看这</em>个<em>代码</em>有<em>什么问题</em>,为什么1024的分辩率下Layer2显示不出来?谢谢!rnrn rn Layer1rn Layer2
大家帮我看这串ASP的代码的错误!!谢谢!
大家<em>帮我</em>看<em>看这</em>串ASP的<em>代码</em>的错误!!谢谢!rnrnrnrnrn rn 无标题文档rn rn rn rn rnrnrn rn 关键字rn rn rn rnrnrn rn rn <>rs("CityName") thenrn i=1rn else rn i=2rn end ifrn if i=2 thenrn asd= "Titles like '%"&keyWord&"%' "rn end if rn %>rn rn 标题: 城市:rn rn rn rn rn rn rnrnrnrnrnrnrnrn调试运行的错误:rnrnrn错误类型:rnMicrosoft JET Database Engine (0x80040E14)rn语法错误 (操作符丢失) 在查询表达式 'CityName= and' 中。rn/3/result.asp, 第 65 行rn
看这什么问题啊?拜托了~~~~~~~~~~~~~~~~~~~
[img=http://hi.csdn.net/attachment/201108/6/0_1312596519zlQ1.gif][/img]rn问题如图,这是<em>什么问题</em>,如何解决???
帮我看这简单的代码出了什么问题了。
#include "stdafx.h"rn#include "windows.h"rnrnvoid main()rnrn WCHAR *str =new WCHAR[100]; rn wcscpy(str, L"中华人民共和国"); rn wprintf(L"WCHAR is = %s\n", str);rn printf("length is %d\n", wcslen(str));rn delete []str;rn return;rnrn//没有任何输出,但如果把rnwcscpy(str, L"中华人民共和国");改为rnwcscpy(str, L"hello world"); 就有输出了。不知为何?rn
帮我看这小段代码 我不知道什么问题
for(i=0;i);rn rn为什么在执行的时候总是跳过第一次输入rn即 想输入给a[0]的值总是莫名其妙跳过rn在线等 谢谢了
大家帮我看这几句输入有什么问题!
/*4-9 设计并测试一个名为Rectangle的矩形类,其属性为矩形的左下角与右上角两个点的坐标,能计算矩形的面积。*/rnrn#include rnrnclass Rectanglernrnprivate:rn int down_left_x; rn int down_left_y;rn int up_right_x;rn int up_right_y;rnpublic:rn //Rectangle(a = 0, b = 0, c = 0, d = 0)rn Rectangle(int a, int b, int c, int d)rn rn down_left_x = a;rn down_left_y = b;rn up_right_x = c;rn up_right_y = d;rn rn cout << "construct!" << endl;rn rn rn ~Rectangle()rn rn cout << "destruct!" << endl;rn rn rn int area(void)rn rn int len = down_left_x - up_right_x, width = down_left_y - up_left_y, area;rn rn area = len * width;rn rn return area; rn rnrnrnmain()rnrn int a, b, c, d;rn rn cout << "请输入矩形左上点和右下点的坐标:" << endl;rn //cin >> a >> b >> c >> d >> endl; //这里的几句输入老是提示有问题!rn cin >> a >> endl;rn cin >> b >> endl;rn cin >> c >> endl;rn cin >> d >> endl;rnrn Rectangle rect(a, b, c, d);rn rn cout << "矩形的面积为:" << rect.area() << endl;rnrnrn我这里的输入老是提示错误,怎么回事啊???rn还请多多指教!!!
帮忙看看这表有什么问题
会员基本信息表rn表名:member_info 主键:member_idrn序号 字段名 类型 描述rn1 Member_id char 会员编号rn2 Member_name char 姓名rn3 Sex char 性别rn4 Nation varchar 民族rn5 Birth_year date 出生日期rn6 Id_card char 身份证号码rn7 Post varchar 会员职务rn8 Address varchar 通讯地址rn9 Tel varchar 联系电话rn10 Member_type varchar 会员类型rn11 Enroll_time char 入会时间rn12 Feetype_code char 缴费类型编号rnrn缴费类别表rn表名:feetype 主键:feetypern序号 字段名 类型 长度 描述rn1 Feetype_code char 类别编号rn2 Feetype_name char 类别名称rn3 Xx1_fee decimal XX费rn4 Xx2_fee decimal XX费rn5 Xx3_fee decimal XX费rn6 Deposit decimal 押金rn7 Total1 decimal 合计1rn8 Other1 decimal 其它1rn9 Other2 decimal 其它2rn10 Other3 decimal 其它3rn11 Total2 decimal 合计2rn12 Totalize decimal 总计rn13 Flagj char 缴费标志rn14 Flagt char 退费标志rnrn缴费记录信息表rn表名:payrecords 主键:member_id,payyearrn序号 字段名 类型 长度 描述rn1 SeqNo varchar 流水号rn2 Member_id char 会员编号rn3 Member_name char 姓名rn4 PayYear varchar 缴费年度rn5 FeetDate Date 缴费日期rn6 Feetype_code char 缴费类别<em>代码</em>rn7 Standardpay Decimal 缴费类别标准费用rn8 Total Decimal 收费总计rn9 Paydate Decimal 划款日期rn10 Billno varchar 票据号码rn11 Payflag char 缴款确认(1,0)rn12 affirmName varchar 确认人姓名rn13 tallyName varchar 记账人姓名rn14 affirmDate Date 确认日期rn15 tallyDate Date 记账日期rn16 Payway char 缴款方式,(1、手工缴费;2、银行代扣)rn
帮忙看看这句话有什么问题
Private Declare Function validateRectAsAny Lib "user32" Aliasrn"InvalidateRect"_ (ByVal hwnd As Long, lpRect As Any, ByVal bErase As Long) As Longrn运行时说我缺少字符串常量,怎么回事,光标停在ALIAS后面
看这程序有什么问题!!!谢谢!!
#include"stdio.h"rn#include"stdlib.h"rn#include"malloc.h"rnrn#define L sizeof(struct node)rn struct nodern char numb[10];rn char name[20];rn int age;rn char sex[10];rn struct node *next;rn;rnstruct node *h,*s,*p,*q;rnvoid main( )rnrn struct node *creat();rn void output(struct node *head);rn void search( struct node *head);rn struct node *insert( struct node *head);rn struct node *del(struct node *head);rn int menu();rn printf("请先建立一个链表:\n");rn h=creat();rn while(1)rn rn switch(menu())rn rn case 1:output(h);break;rn case 2:search(h);break;rn case 3:insert(h);break;rn case 4:del(h);break;rn case 5:exit(0);rn rn rnrnrnint menu( ) //菜单rn int x;rn printf("**********菜单**********\n");rn printf("0.利用单链表建立学生基本信息表\n");rn printf("1.浏览每个学生的信息\n");rn printf("2.根据学号查询某个学生的基本信息\n");rn printf("3.根据学号添加学生信息到单链表中\n");rn printf("4.删除一个指定学号的学生的信息\n");rn printf("5.退出系统\n");rn printf("请选择您要进行的操作编号\n");rn scanf("%d",&x); rnreturn x;rnrnrnrnstruct node *creat() //创建链表rn int c=1; rn h=(struct node *) malloc (L);rn h->next=NULL;rn p=h;rn printf("开始建立链表:\n");rn rn while(c)rn rn printf("请输入学生信息:\n");rn s=(struct node *) malloc (L);rn printf("学号:");rn scanf("%s",s->numb);rn printf("姓名:");rn scanf("%s",s->name);rn printf("年龄:");rn scanf("%d",&s->age);rn printf("性别:");rn scanf("%s",s->sex);rn p->next=s; rn p=s;rn rn printf("继续请输入1,退出输入0:\n");rn scanf("%d",&c);rn rn rn p->next=NULL;rn rn return h;rnrnrnrnrnvoid output(struct node *head)//输出学生信息rn rn q=h;rn if(!h)rn dorn printf("学号%s,姓名%s,年龄%d,性别%s\n",q->numb,q->name,q->age,q->sex);rn q=q->next;rn while(p);rn printf("链表为空!\n");rnrnrnrnrnvoid search(struct node *head)//查找学生rnrn char j[10];rn printf("请输入查找的学生的学号\n");rn scanf("%s",j);rnq=h->next;rn if(!q)rn printf("链表为空");rn while(q->numb!=j && q!=NULL)rn q=q->next;rnif(q)rn printf("该学生的信息为:学号%s 姓名%s 年龄%d 性别%s",q->numb,q->name,q->age,q->sex);rnelse rnprintf("该学生不存在");rnrnrnrnstruct node *insert (struct node * head)//插入一个学生rnrn p=h;q=p->next;rn if(!(s=(struct node *) malloc (L))) return NULL;rn printf("请输入插入学生的信息,以逗号为间隔:");rn scanf("%s,%s,%d,%s",s->numb,s->name,&s->age,s->sex);rn s->next=NULL;rn if(!p) h->next=s;rnrn while(!q && q->numbnumb)rn p=q;rn q=q->next;rn rn s->next=q;rn p->next=s;rn return h;rnrnrnrnstruct node *del( struct node * head)//删除一个学生rn char i[10];rn p=h->next;rn if(!p) printf("链表为空");rn printf("请输入要删除的学生的学号");rn scanf("%s",i);rn while(p->numb!=i && p->next!=NULL)rn q=p;rn p=p->next;rn rn if(p->numb==i)rn if(p==h->next)rn h=p->next;rn elsern q->next=p->next;rn rn elsern printf("找不到该学生");rn return h;rnrn
请大家看看这句话有什么问题
CTypedPtrList lineList;rn为什么VC报错:rnc:\程序\scribble\scribbledoc.h(50) : error C2143: syntax error : missing ';' before 'rnError executing cl.exe.rnrnscribble.exe - 4 error(s), 0 warning(s)rn
各位看看下面的代码什么问题
class Trnrnprotected: rn int a;rn int b;rnpublic:rn T();rn;rnrnT::T():a(10)rnrnb=a*10;rn
各位大虾看看我的代码什么问题
rnrnrnrn为什么if number=0 then这句总会执行else分句呢?输入错误也执行好象返回的number没有作用。只要改成<0则是总执行第一句,即使输入正确也没用rnid和password字段都是文本型的,sql语句应该没<em>什么问题</em>啊rnrn另外象这种sql存在性判断还有什么写法啊?是不是number不太保险?
大家帮我看看我的代码什么问题啊(急急!!!!!!)
import java.awt.*;rn import java.net.*;rn import java.io.*;rn import java.awt.*;rn import java.awt.event.*;rn import java.net.*;rn import java.io.*;rn import javax.swing.Timer;rnrn class Server extends Thread rn ServerSocket skt;rnrn Socket Client[]=new Socket[10];;rn rnrn int i = 0;rnrn TextArea in;rnrn int port,k=0,l=0;rnrn //BufferedReader theInputStream;rnrn PrintStream theOutputStream;rnrn //String readin;rnrn Face chat;rnrn public Server(int port, Face chat) rn try rn this.port = port;rn skt = new ServerSocket(port);rn this.chat = chat;rn catch (IOException e) rn chat.ta.append(e.toString());rn rn rnrn public void run() rnrn chat.ta.append("等待连线......");rnrn while (true) rn //System.out.print(""+i+"\n");rn try rnrnrn Client[k] = skt.accept(); /* 接收客户连接 */rnrn //当有客户端连接时就新建一个子线程rnrnrn if (i < 2) rn ServerThread server[] = new ServerThread[10];rn server[k]= new ServerThread(Client[k], this.chat, i);rn l=server.length;rn server[k].start();rn chat.ta.append("客户端" + Client[k].getInetAddress() + "已连线\n");rn /*theInputStream = new BufferedReader(new InputStreamReader(Clientrn .getInputStream()));*/rn //for(int j=0;j" + tftype.getText() + "\n");rnrn if (iamserver)rn server.dataout(tftype.getText());rn elsern client.dataout(tftype.getText());rnrn tftype.setText("");rn rn rnrn public void keyTyped(KeyEvent e) rn rnrn public void keyReleased(KeyEvent e) rn rn rn rnrn我写的这个程序在客户断开连接之后,服务器也断开了连接,现在的问题是断开连接的服务器怎么不能在作为服务器了。我已经关闭了serversock连接了啊!!!rn大家<em>帮我</em>看看。一个作为服务器,一个做客户端,客户端断开连接,服务器端不能再作为服务器。
leelee大虾帮我看一下下面的代码什么问题啊!
leelee大虾<em>帮我</em>看一下下面的<em>代码</em>有<em>什么问题</em>啊!rnrn--------------------------------------------------------------------------------rn现象:编译可以通过,用java mytable.class运行此程序正常,用鼠标左键单击table时,在dos窗口中显示鼠标所击中cell的行列数例如""。rn但是当我把此mytable.class插入IE中作为Applet运行时,java控制台上抱出rn”Exception occurred during event dispatchingrnjava.lang.NoSuchMethodError“的错误,抱错行数指向table.addMouseListener,如果把抱错的这个语句删掉,Applet则运行正常rnrn这个myclass.class程序是即可以作为applet在IE中运行也可以作为Applacation在dos窗口下运行的。rnrn--------------------------------------------------------------------------------rn<em>代码</em>:rntable=new JTable(5,10);rn table.setAutoscrolls(true);rn table.setAutoResizeMode(table.AUTO_RESIZE_OFF); rn JScrollPane sp=new JScrollPane(table);rn contentpane.add("Center",sp);rn table.addMouseListener(new MouseAdapter() rnpublic void mouseClicked(MouseEvent e) rnint i = table.rowAtPoint(e.getPoint()); rnint j = table.columnAtPoint(e.getPoint());rnSystem.out.println("");rn rn );
请求各位大神帮我看这两张图片来自什么地方
[img=https://img-bbs.csdn.net/upload/201503/08/1425769954_618421.jpg][/img][img=https://img-bbs.csdn.net/upload/201503/08/1425769965_834618.png][/img]
看这代码有问题?
if(rs.getDate("user_log_time")==null )rnrnout.println("-");rnrnelsernrn%>rnrn<%rn
帮我看这几行代码什么问题?谢谢!
rules="若动物有毛发,则动物是哺乳动物"rnif inlist("有毛发",rules) then rnthisform.text5.value=rulesrnelse rnthisform.text5.value="asdf "rnendifrnrn<em>帮我</em>看<em>看这</em>几<em>代码</em>有<em>什么问题</em>,预想的结果应该是在text5里面出现:若动物有毛发,则动物是哺乳动物,但是运行总是得到结果: text5里面是:asdfrn
代码什么问题??各位帮我看看,谢谢!!
部分<em>代码</em>如下:rnrndeclare @sql nvarchar(1000),@lyjhh varchar(40),@mitem varchar(40)rndeclare @a char(8)rndeclare @dtsl1 intrnrnset @a = 'day1jhsl' --字段名称rnset @lyjhh = '20030507'rnset @mitem ='eq2082e6dj'rnset @sql=N'select @dtsl = '+ @a +' from g_zpjhb where jhh='+@lyjhh + 'and mitem ='+@mitemrnrnexec sp_executesql @sql,N'@dtsl varchar(2000) output',@dtsl1 outputrnrnprint @dtsl1 rnrnrnServer: Msg 207, Level 16, State 3, Line -1074283883rnInvalid column name 'eq2082e6dj'.rnrn如果我把他改为:rnrnset @sql=N'select @dtsl = '+ @a +' from g_zpjhb where jhh='+@lyjhh rnrnrn即只带一条件则可以,为什么带两个条件就不行了呢?请教<em>各位</em>带两个条件的时候<em>代码</em>该怎么写??rn谢了!rn rn
各位老大看下面这段代码什么问题
procedure Tpayfrm.Button3Click(Sender: TObject);rnbeginrnwith datamodule5.ADOQuery1 dornbeginrnif modified thenrnbeginrnif messagedlg(' 数据以修改,是否保存?',mtconfirmation,[mbyes,mbno],0)=mryes thenrnpost;rnend;rnrnend;rnpayfrm.close;rnpayfrm:=tpayfrm.Create(self);rnpayfrm.ShowModal;rnend;rnrn执行以后,新窗体可创建,可是旧窗体不消失,关闭新窗体时,旧窗体才同时消失。为什么?rn如果用PAYFRM。FREE,旧窗体会消失,但关闭程序时会出错
看这三句话出了什么问题?
char szHead[10];rnchar szDst[256];rnrnstrcpy(szHead,"Head");rnstrcpy(szDst,"adfasdfasdfddfasdfasd");rnsprintf(szDst,"%s\n%s",szHead,szDst);rn本来想在szDst前加个头,可是结果却是szDst变成了"Head\nHead\nHead\n......rnrnwhat's the problem of these statement?rn
帮我看这句话
--disable trigger tr_SubjSource_insertrn--on dbo.SubjSourcernenable trigger tr_SubjSource_insertrnon dbo.SubjSourcerngorndeclare addrow_SubjSou_cursor cursor rnscroll keysetrnfor select [列 0] from dbo.单选题1rnopen addrow_SubjSou_cursorrndeclare @id intrnfetch next from addrow_SubjSou_cursor into @idrnwhile @@FETCH_STATUS=0rnbeginrninsert into SubjSource(question,answer)rn select [列 1],null FROM dbo.单选题1rn where [列 0]=@idrnfetch next from addrow_SubjSou_cursor into @idrnendrnclose addrow_SubjSou_cursorrnDEALLOCATE addrow_SubjSou_cursorrnrngornselect * from SubjSourcernrn----------rn上面是把一个表(单选题1)中的数据逐行的添加到另一个表(SubjSource)中去rn除了[列 0]到SubjSource.id, 而是使用的一个instead of 触发器来在每次插入数据时rn先增加SubjSource.id,但上面结果,去只有 SubjSource.id有值,而[列 1](这是单选题1表中的列,是有值的)中的值却没有插入到SubjSource.question列中,这是怎么回事呢?
帮我看这触发器
CREATE TRIGGER [Tu_sell] ON dbo.d_Sell with encryption FOR UPDATE AS rnbegin rn declare @numrows int, @numnull int, @errno int, @errmsg varchar(255), @updatecnt int rn rn set @updatecnt=@numrows select @numrows = @@rowcount if @numrows = 0 returnrn rn if update(cwchk) or update(cwpz) return rn if update(setchk_sure) rn begin rn if update(sellid) or update(sell) or update(quotaid) or update(set_depotid) or update(set_sure) or update(get_sure) rn or update(getchk_sure) or update(get_mchid) or update(setdate) or update(getdate) rn or update(setcr_name) or update(getcr_name) or update(setcr_date) or update(getcr_date) or update(setchk_name) rn or update(getchk_name) or update(setchk_date) or update(getchk_date) or update(setsure_name) rn or update(getsure_name) or update(setsure_date) or update(getsure_date) or update(set_comment)rn or update(get_comment) or update(crdate) rn begin raiserror 130100 '不可以同时修改审核和其他内容!' rn rollback transaction return rn end rnrn这是一个触发器的一部份,看到这触发器,有两点不明白:1 set @updatecnt=@numrows select @numrows = @@rowcount if @numrows = 0 returnrn这几句有何作用?rn2 rollback transaction 前面没有开始事务,这里怎么来个结束事务rnrn
帮我看这程序。。。
是vc++6.0中新建的一个SendMail.dswrnresource.h中包含了一个图标rn下面这段程序中别的都没错,就是“wc.lpszClassName=WndClassName; //窗口类结构名字一行出错”,说“WndClassName”未定义,rn究竟怎么回事?rn// SendMail.cpp : Defines the entry point for the application.rn//rnrn#include "stdafx.h"rn#include "resource.h"rnrnLRESULT CALLBACK WndProc(HWND hWnd,UINT iMsg,WPARAM wParam,LPARAM lParam)rn //消息处理函数rn /*rn HDC hdc;rn TEXTMETRIC Ttm;rn PAINTSTRUCT ps;rn */rn switch (iMsg)rn case WM_CREATE:rn return 0;rn case WM_DESTROY:rn PostQuitMessage(0);rn return 0;rn case WM_COMMAND:rn switch(wParam)rn case ID_FILE_EXIT:rn PostQuitMessage(0);rn break;rn rn return 0;rn rn return DefWindowProc(hWnd,iMsg,wParam,lParam);rnrnrnint APIENTRY WinMain(HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nCmdShow)rnrn // TODO: Place code here.rn WNDCLASSEX wc;rn wc.cbClsExtra=0; //类的额外大小rn wc.cbSize=sizeof(wc); //内存大小rn wc.cbWndExtra=0; //额外窗口大小rn wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); //窗体的颜色rn wc.hCursor=LoadCursor(NULL,IDC_IBEAM); //鼠标形状rn wc.hIcon=LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON1)); //读入大图标rn wc.hIconSm=LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON1)); //读入小图标rn wc.hInstance=hInstance;rn wc.lpfnWndProc=WndProc; //实例句柄rn wc.lpszClassName=WndClassName; //窗口类结构名字rn wc.lpszMenuName=MAKEINTRESOURCE(IDR_MENU1);rn wc.style=CS_HREDRAW|CS_VREDRAW;rnrn RegisterClassEx(&wc);rn HWND hWnd;rn hWnd=CreateWindowEx(WS_EX_LEFT,WndClassName,"Send Mail System",WS_OVERLAPPEDWINDOW|WS_HSCROLL|WS_VSCROLL,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInstance,NULL);rn if (hWnd==NULL)rn MessageBox(NULL,"Can't create the window","Error",MB_OK|MB_ICONSTOP);rn return 0;rn rn ShowWindow(hWnd,nCmdShow);rn UpdateWindow(hWnd);rnrn MSG msg;rn while(GetMessage(&msg,NULL,0,0))rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return msg.wParam;rn
帮我看这异常
[code=Java]rnERROR [hlPortal]:250 - Servlet.service() for servlet hlPortal threw exceptionrn java.lang.IllegalArgumentException: Validator class org.springmodules.validation.commons.DefaultBeanValidator does not support class com.pax.hlportal.presentation.web.form.DemandFormrnat org.springframework.validation.ValidationUtils.invokeValidator(ValidationUtils.java:60)rnat org.springframework.web.servlet.mvc.BaseCommandController.bindAndValidate(BaseCommandController.java:373)rnat org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:248)rnat org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)rnat org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)rnat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)rnat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)rnat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)rnat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:425)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rnat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rnat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rnat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)rnat org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)rnat org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)rnat org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)rnat java.lang.Thread.run(Unknown Source)rn[/code]rn问是<em>什么问题</em>,该怎么解决这个问题(myeclipse+spring+hibernate+oracle)
帮我看这
useing namespace std;rn
帮我看这程序!!!
Option ExplicitrnDim MyDataBase As DatabasernDim MyTabledef As TabledefrnDim MyField As fieldrnDim fieldnum As DoublernDim datapath As StringrnDim tablename As StringrnrnPrivate Sub cmdAddTab_Click()rn If cmdAddTab.Caption = "添加表" Thenrn tablename = InputBox("输入表名称", "表名称")rn If tablename$ = "" Thenrn string1$ = MsgBox("未创建表!", bvOkOnly, "警告")rn Elsern Set MyTabledef = MyDataBase.createTabledef(tablename)rn cmdAddTab.Caption = "添加字段"rn End Ifrn rn If cmdAddTab.Caption = "添加字段" Thenrn fieldnumber$ = InputBox("输入字段数", "字段数")rn If fieldnumber$ = "" Thenrn string1$ = MsgBox("未输入字段!", bvOkOnly, "警告")rn Elsern fieldnum = Val(fieldnumber$)rn Dim temp As Doublern Label1.Caption = "输入字段名"rn For i = 1 To temp - 1rn Load Text(i)rn Text(i).Top = Text(i - 1).Top + 400rn Text(i).Visible = Truern Text = ""rn Nextrn cmdOk.Enabled = Truern End IfrnEnd SubrnrnPrivate Sub cmdNew_Click()rn datapath$ = Input("输入新建的数据库名称", "数据库名称")rn If datapath$ = "" Thenrn string1$ = MsgBox("未建数据库!", bvOkOnly, "警告")rn Elsern Set MyDataBase = workspades(0).createdatabase(datapath$, dblanggeneral)rn cmdAddTab.Enabled = Truern End IfrnEnd SubrnrnPrivate Sub cmdOk_Click()rn For i = 0 To field - 1rn Set MyField = MyTabledef.createfield(Text(i), dbinteger)rn MyTabledef.fields.append MyFieldrn Nextrn MyDataBase.tabledefs.append MyTabledefrnEnd SubrnrnPrivate Sub Form_Load()rn cmdNew.Caption = "新建"rn cmdAddTab.Caption = "添加表"rn cmdOk.Caption = "确定"rn cmdAddTab.Enabled = Falsern cmdOk.Enabled = FalsernEnd Subrn为什么运行的时候显示用户定义类型未定义呢?
帮我看这到题
2. 1) class Super rn 2) public float getNum()return 3.0f; rn 3) rn 4) rn 5) public class Sub extends Super rn 6) rn 7) rn which method, placed at line 6, will cause a compiler error? rn A. public float getNum()return 4.0f; rn B. public void getNum() rn C. public void getNum(double d) rn D. public double getNum(float d)return 4.0d; rn答案是brn究竟为什么?
帮我看这问题!
//Print.javarn//打印数值列表rnimport javax.swing.JApplet;rnimport java.awt.Graphics;rnpublic class Print extends JAppletrn public void paint(Graphics g)rn rn int counter;rn rn super.paint(g);rn g.drawstring("N"+"\t"+"squre"+"\t"+"cude",25,10);rn for(counter=1;counter+counter*counter*counter,25,10*(1+counter));rn rn rnrn 运行时,打印结果与预期的相反,g.drawString里面的\t失效了,换作\n也不能执行换行,请问这是为什么?rn我期望的结果是:rnN squre cudern1 1 1rn2 4 8rn3 9 27rn4 16 64rn5 25 125
看这程序有什么问题
#include "Conio.h"rn#include "graphics.h"rnrnmain()rn rn int gdriver,gmode;rn gdriver=DETECT;rn initgraph(&gdriver,&gmode,"");rn setcolor(12);rn settextstyle(4,0,8); //黑体,放大8倍rn outtextxy(100,100,"game over");rn setusercharsize(2,1,4,1); //水平放大2倍,垂直放大4倍,rn setcolor(15);rn settextstyle(2,0,4); //小号笔画字体,放大4倍rn outtextxy(200,200,"game over");rn setusercharsize(4,1,1,1); //水平放大4陪,垂直放大一陪rn settextstyle(3,0,0);rn outtextxy(,300,"game over");rn rnrn getch();rn closegraph(); /* 恢复TEXT屏幕模式 */rn
各位大哥帮我看这题!
在线等待哪位大哥给解决下了,拜托了!! rn修正下面<em>代码</em>,请尽量不要修改类和主函数,删除部分用"//"注明,增加部分用"// add"注明 rn #ifndef _WINDOWS_ rn #define m_dwValueA rn #endif rnrn class CBase rn rn protected: rn static DWORD m_dwValueA; rn rn public: rn virtual DWORD GetValue() = 0; rn void SetValue(DWORD dwValue)m_dwValueA = 1; rn static DWORD GetStaticValue()return m_dwValueA; rn CBase() rn rn m_dwValueA = 1; rn rn ; rnrn class CClassB:public CBase rn rn protected: rn DWORD m_dwValueB; rn rn public: rn virtual DWORD GetValue()return m_dwValueA; rn CClassB() rn rn m_dwValueA = 2; rn rn ; rnrn class CClassC:public CClassB rn rn protected: rn DWORD m_dwValueC; rn rn public: rn virtual DWORD GetValue()return m_dwValueA; rn CClassC() rn rn m_dwValueA = 3; rn rn rn void main(void) rn rn CBase *pBase, *pBase2; rn //pBase = new CBase(); rn pBase = new CClassB(); rn pBase = new CClassC(); rn pBase2= new CClassB(); rn DWORD dwResult = pBase->GetValue(); rn rnrn
各位帮我看这一题,谢谢
class ValHoldrnpublic int i = 10;rnrnrnpublic class ObParmrnpublic static void main(String argv[])rnObParm o = new ObParm();rno.amethod();rnrnrnpublic void amethod()rnint i = 99;rnValHold v = new ValHold();rnv.i=30;rnanother(v,i);rnSystem.out.println(v.i);rn//End of amethodrnrnpublic void another(ValHold v, int i)rni=0;rnv.i = 200;rnValHold vh = new ValHold();rnv = vh;rnSystem.out.println(v.i+ " "+i);rn//End of anotherrnrnrnrn编译后的结果是10,0,200rnrn百思不得其解,我自己做的答案是10,0,10rnrn谁给我解释一下啊?谢谢
好心的各位帮我看这题吧~
3) A 700 byte Ethernet packet is received by a router that has a PPP link to the next hop for the packet. The MTU for the PPP link is 140 bytes. Show the offset, flag and length fields for each of the fragmented packets (Note! You may need fewer fragments than the number of spaces given in the table). Offset can be given in bytes, but remember that since the actual offset counts the number of 8 byte units, a fragment must start on an 8 byte boundary.rnrnFragment Number Flag (M bit) Offset Lengthrn1 rn2 rn3 rn4 rn5 rn6 rn简单的翻译一下吧,3.路由器接收到一个有端对端协议的700字节的包,并且这个路由器连接到下一个跳转去接受包。端对端的移动测试装置是140个字节。相识了一个包的偏移量。(注意!你可能需要些超过表格所给空间的碎片)偏移量可以用字节来表示,但是因为便宜量计算8个字节单位,一个碎片必须在8字节的基础上开始。rnrn我们老师说这是个关于分包的问题,,可是我不知道从何着手,恳请<em>各位</em>给个提示吧,谢谢了rn
各位帮我看这个例子错在哪里?
这个例子的作用是通过提交表单向数据库中存储数据:rnrnrnrn rnrnrnrnrn rnrnrnrnmultiple categories:'rnrn if ($add_record == 1)rn $pick_message = 'Selected category values are highlighted:';rn $sql = 'INSERT INTO businesses (name, address, city, telephone, url)';rn $sql .= ' VALUES (?, ?, ?, ?, ?)';rn $params = array($Biz_Name, $Biz_Address, $Biz_City,rn $Biz_Telephone, $Biz_URL);rn $query = $db->prepare($sql);rn if (DB::isError($query)) die($query->getMessage());rn $resp = $db->execute($query, $params);rn if (DB::isError($resp)) die($resp->getMessage());rn $resp = $db->commit();rn if (DB::isError($resp)) die($resp->getMessage());rn echo ' Record inserted as shown below.';rn $biz_id = $db->getOne('SELECT max(business_id) FROM businesses');rn rnrn?>rnrn rn rn rn rn rn query($sql);rn if (DB::isError($result)) die($result->getMessage());rn while ($row = $result->fetchRow())rn if (DB::isError($row)) die($row->getMessage());rn if ($add_record == 1)rn $selected = false;rn if (in_array($row[1], $Biz_Categories)) rn $sql = 'INSERT INTO biz_categories';rn $sql .= ' (business_id, category_id)';rn $sql .= ' VALUES (?, ?)';rn $params = array($biz_id, $row[0]);rn $query = $db->prepare($sql);rn if (DB::isError($query)) die($query->getMessage());rn $resp = $db->execute($query, $params);rn if (DB::isError($resp)) die($resp->getMessage());rn $resp = $db->commit();rn if (DB::isError($resp)) die($resp->getMessage());rn print("$row[1]\n");rn $selected = true;rn rn if ($selected == false) rn echo "$row[1]\n";rn rn else rn echo "$row[1]\n";rn rn rn ?>rnrn rn rn rn rn Business Name:rn rn rn Address:rn rn rn City:rn rn rn Telephone:rn rn rn URL:rn rn rn rn rnrnrn rnrnrnAdd Another Business';rn else rn echo '';rn rn?>rnrn rnrnrnrn产生错误提示:rnParse error: parse error, unexpected T_IF in F:\public\register2.php on line 30rnrn这个所谓的unexpected T_IF是什么意思?rn
各位老大帮我看看一段代码什么问题啊?急!!!
rn就是x和记录集中的数据比较是不是不能这样表示x=(Recordset1.Fields.Item("beizhu").Value) rn如果不是这样表示的那请问怎么表示? rn
那位大佬看这什么意思啊
#includern#includern#includern#includernusing namespace std;rnstruct Meetinglist //定义类 Meetinglistrnrn char name[10];rn char number[50];rn char department[40];rn char address[40];rn char time[15];rn char moderator[20];rn char recoder[15];rn char presentmembers[300];rn char digest[500];rn;rnrnvoid Add(fstream); //添加会议记录rnvoid modification(fstream); //修改会议记录 rnvoid Delete(fstream); //删除会议记录rnvoid Inquire(fstream); //按不同字段(会议编号)查询会议记录和浏览所有会议记录信息rnrnrnint main()rnrn int choice;rn fstream field("F:\\aaa.dat", ios::in | ios::out | ios::binary);rn if (!field)rn rn cerr << "文件不能打开" << endl;rn return 0;rn rnrn while (choice)rn rn cout << "**会议记录管理系统**\n";rn cout << "1.添加会议记录:\n"rn << "2.修改会议记录:\n"rn << "3.删除会议记录:\n"rn << "4.按不同字段(会议编号)查询会议记录和浏览所有会议记录信息:\n"rn << "0.退出!\n";rnrnrn dorn rn cin >> choice;rn while (choice != 0 && choice != 1 && choice != 2 && choice != 3 && choice != 4 && choice != 5);rnrn switch (choice)rn rn case 1: Add(field); break;rn case 2: modification(field); break;rn case 3: Delete(field); break;rn case 4: Inquire(field); break;rn case 0: cout << "退出系统!\n"; return 0;rn default:cout << "输入错误,请重新输入\n";rn rn rnrn field.close();rnrnrnvoid Add(fstream f)rnrn Meetinglist list;rnrn cout << "请输入会议名称:\n";rn cin >> list.name;rnrn cout << "请输入会议编号(3位):\n";rn cin >> list.number;rnrn cout << "請输入部门名称:\n";rn cin >> list.department;rnrn cout << "请输入会议地点:\n";rn cin >> list.address;rnrn cout << "请输入会议日期:\n";rn cin >> list.time;rnrn cout << "请输入会议主持人:\n";rn cin >> list.moderator;rnrn cout << "请输入会议记录人:\n";rn cin >> list.recoder;rnrn cout << "请输入出席人员:\n";rn cin >> list.presentmembers;rnrn cout << "请输入会议摘要:\n";rn cin >> list.digest;rnrn f.write((char*)& list, sizeof(Meetinglist));rnrnrnrnrnvoid modification(fstream f)rnrn Meetinglist List;rn int a = 0;rn int m = 0;rn int choice;rn char num[50];rn char information[50];rn f.seekg(0, ios::end);rn long posEnd = (long)f.tellg();rn f.seekg(0, ios::beg);rnrnrn cout << "*请输入要修改会议记录的编号:*\n";rn cin >> num;rn dorn rn f.read((char*)& List, sizeof(Meetinglist));rn for (int i = 0; i < 50; i++)rn rn if (num[i] == List.number[i])rn m++;rn if (num[i] != List.number[i])rn rn m = 0;rn break;rn rn rn while (m != 50 && posEnd != f.tellg());rnrn if (m << "*找到这个会议*\n"rn << "1.修改会议名称:\n"rn << "2.修改会议编号:\n"rn << "3.修改部门名称:\n"rn << "4.修改会议地点:\n"rn << "5.修改会议日期:\n"rn << "6.修改会议主持人:\n"rn << "7.修改会议记录人:\n"rn << "8.修改出席人员:\n"rn << "9.修改会议摘要:\n"rn << "0.退出:\n";rnrn if (m != 50)rn rn cout << "*没有这个会议*!\n";rn return;rn rnrn while (choice)rn rn dorn rn cin >> choice;rn while (choice != 1 && choice != 2 && choice != 3 && choice != 4 && choice != 5 &&rn choice != 6 && choice != 7 && choice != 8 && choice != 9 && choice != 0);rnrn switch (choice)rn rn case 1: cin >> information;rn for (a = 0; a < sizeof(List.name); a++)rn List.name[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 2: cin >> information;rn for (a = 0; a < sizeof(List.number); a++)rn List.number[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 3: cin >> information;rn for (a = 0; a < sizeof(List.department); a++)rn List.department[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 4: cin >> information;rn for (a = 0; a < sizeof(List.address); a++)rn List.address[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 5: cin >> information;rn for (a = 0; a < sizeof(List.time); a++)rn List.time[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 6: cin >> information;rn for (a = 0; a < sizeof(List.moderator); a++)rn List.moderator[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 7: cin >> information;rn for (a = 0; a < sizeof(List.recoder); a++)rn List.recoder[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 8: cin >> information;rn for (a = 0; a < sizeof(List.presentmembers); a++)rn List.presentmembers[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 9: cin >> information;rn for (a = 0; a < sizeof(List.digest); a++)rn List.digest[a] = information[a];rn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& List, sizeof(List));rn return;rn case 0: cout << "退出!\n"; return;rn rnrn rnrnrnrnrnvoid Delete(fstream f)rnrn Meetinglist list;rn int m = 0;rn char a;rn char num[50];rn char Fill[80] = ' ' ;rn int i;rn cout << "*请输入要删除的会议的编号Y/N:*" << endl;rn cin >> num;rn f.seekg(0, ios::end);rn long posEnd =(long)f.tellg();rn f.seekg(0, ios::beg);rn dorn rn f.read((char*)& list, sizeof(Meetinglist));rn for (int i = 0; i < 50; i++)rn rn if (num[i] == list.number[i])rn m++;rn if (num[i] != list.number[i])rn rn m = 0;rn break;rn rn rn while (m != 50 && posEnd != f.tellg());rn if (m << "*找到这个会议*\n";rnrn if (m != 50)rn rn cout << "*没有这个会议!*\n";rn return;rn rn cout << "*确定删除这个会议?*" << endl;rn dorn rn cin >> a;rn while (a != 'Y' && a != 'N' && a != 'y' && a != 'n');rnrn if (a == 'Y' || a == 'y')rn rn for (int i = 0; i < sizeof(list.name); i++)rn rn list.name[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.number); i++)rn rn list.number[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.department); i++)rn rn list.department[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.address); i++)rn rn list.address[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.time); i++)rn rn list.time[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.moderator); i++)rn rn list.moderator[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.recoder); i++)rn rn list.recoder[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.presentmembers); i++)rn rn list.presentmembers[i] = Fill[i];rn rn for (i = 0; i < sizeof(list.digest); i++)rn rn list.digest[i] = Fill[i];rn rnrn f.seekp(-long(sizeof(Meetinglist)), ios::cur);rn f.write((char*)& list, sizeof(list));rn return;rn rn if (a == 'N' || a == 'n')rnrn return;rnrnrnrnrnvoid Inquire(fstream f)rnrn int choice;rn Meetinglist list;rn char num[50];rn f.seekg(0, ios::end);rn long posEnd = (long)f.tellg();rn cout << "**查询会议资料**\n";rn while (1)rn rn cout << "请输入操作选项\n"rn << "1:按会议编号查询\t"rn << "2:浏览\t"rn << "0:退出\n";rn cin >> choice;rn switch (choice)rn rn case 1:rn f.seekg(0, ios::beg);rn cout << "会议编号:\n";rn cin >> num;rn dorn rn f.read((char*)& list, sizeof(Meetinglist));rn while (list.number != num && f.tellg() != posEnd);rn if (list.number == num)rn cout << list.number << '\t'rn << list.name << '\t'rn << list.department << '\t'rn << list.address << '\t'rn << list.time << '\t'rn << list.moderator << '\t'rn << list.recoder << '\t'rn << list.presentmembers << '\t'rn << list.digest << endl;rn elsern rn cout << "*会议编号输入错误*\n";rn continue;rn rn break;rn rn case 2:rn f.seekg(0, ios::beg);rn dorn rn f.read((char*)& list, sizeof(Meetinglist));rn cout << list.number << '\t'rn << list.name << '\t'rn << list.department << '\t'rn << list.address << '\t'rn << list.time << '\t'rn << list.moderator << '\t'rn << list.recoder << '\t'rn << list.presentmembers << '\t'rn << list.digest << endl;rn while (list.number != num && f.tellg() != posEnd);rn break;rn rn case 0: return;rn rn rnrnrnrn1>C:\Users\Administrator\Desktop\课设\课设\课设.cpp(52,1): error C2280: “std::basic_fstream>::basic_fstream(const std::basic_fstream> &)”: 尝试引用已删除的函数rnrn
帮我看这句话是什么意思啊
If Err <> 0 or Session(GStr_OraDatabase).LastServerErr <> 0 ThenrnDBSelect = "RDB 参照 に失敗しました。 " & Err & ": " & Error & " " & "oo4o: " & Session("OraDatabase").LastServerErrText & " 管理者に問い合わせてください"rnExit FunctionrnEnd Ifrn
帮我看这句话是什么意思啊?
这是<em>代码</em>:[code=JScript]rnrnfunction moveElement(elementID,final_x,final_y,interval)rn var elem = document.getElementById(elementID);rn var xpos = parseInt(elem.style.left);rn var ypos = parseInt(elem.style.top);rn if(xpos == final_x && ypos == final_y)rn return true;rn rn if(xpos < final_x)rn xpos++;rn rn if(xpos > final_x)rn xpos--;rn rn if(ypos < final_y)rn ypos++;rn rn if(ypos > final_y)rn ypos--;rn rn elem.style.left = xpos + "px";rn elem.style.top = ypos + "px";rn var repeat = "moveElement('"+elementID+"',"+final_x+","+final_y+","+interval+")";rn movement = setTimeout(repeat,interval);rnrn[/code]rn 每当用户把鼠标指针悬停在某个连接上,不管上一次调用是否已经把图片移动到位.moveElement()函rnrn数都会被再次调用并试图把[color=#0000FF]同一个元素移动到另一个地方去[/color].于是,当用户在连接之间快速移动鼠标rnrn时,movement 变量就会像一条拔河绳那样来回变化,而moveElement()函数就会试图把[color=#0000FF]同一个元素同时移rnrn动到两个不同的地方去.[/color]如果用户移动鼠标的速度够快,积累在setTimeout队列里的事件就会导致动画效rnrn果产生滞后.rn 为了消除动画滞后的现象,我可以用clearTimeout()函数清除积累在setTimeout队列里的事件:clearTimeout(movement);rn这些文章是书上讲到的.这2个蓝色部分的文字是什么意思啊?"同一个元素"是指的是哪个元素啊?rnrn下面是最终完成的<em>代码</em>:rn[code=JScript]rnrnfunction moveElement(elementID,final_x,final_y,interval)rn var elem = document.getElementById(elementID);rnif(elem.movement)rn clearTimeout(elem.movement);rn rn var xpos = parseInt(elem.style.left);rn var ypos = parseInt(elem.style.top);rn if(xpos == final_x && ypos == final_y)rn return true;rn rn if(xpos < final_x)rn xpos++;rn rn if(xpos > final_x)rn xpos--;rn rn if(ypos < final_y)rn ypos++;rn rn if(ypos > final_y)rn ypos--;rn rn elem.style.left = xpos + "px";rn elem.style.top = ypos + "px";rn var repeat = "moveElement('"+elementID+"',"+final_x+","+final_y+","+interval+")";rnelem.movement = setTimeout(repeat,interval);rnrn[/code]rnelem.movement = setTimeout(repeat,interval);rn这条语句前面为什么要加elem?
谁能帮我看这题啊?
17.请编写一个函数fun(char *s),该函数的功能使把字符串中的内容拟置。rn17. void fun(char *s)rnchar ch;rn int i,m,n;rn i=0;rn m=n=strlen(s)-1;rn while(i<(n+1)/2)rn ch=s[i];rn s[i]=s[m];rn s[m]=ch;rn i++;rn m--;
各位帮我看这到底是什么原因啊?
昨天还好好的,今天运行程序突然出现这个问题:编译器错误信息: CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\shopping cart_shopping\257ab420\3f5c7b3\blg70ccd.dll”--“拒绝访问。 rn直接在IIS下浏览出现:分析器错误信息: 在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。rnrn源错误: rnrnrn行 44: 它为成员站点提供单独登录和核心配置文件服务。rn行 45: rn行 46: rn行 47: rn行 48:
各位大虾帮帮忙啊!帮我看这几个程序!
1、定义数组输入一个班50个学生的一门课的成绩,然后再按成绩从高分到低分排序输出rn学生的成绩。rn2、用new操作为一个包含20个整数的数组分配内存,输入若干个值到数组中,分别统计其rn中正数和负数的个数后再用delete操作释放内存。rn3、编写一个函数,计算n!。rn1、2各20分,3题10分。
帮忙看看这日志,看是否有什么问题
日期 源 消息rn2009-03-10 15:00:45.57 server Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) ...rn2009-03-10 15:00:45.59 server 将 SQL Server 消息记录在文件“d:\Program Files\Microsoft SQL Server\MSSQL\log\ERRORLOG”中rn2009-03-10 15:00:45.59 server 服务器进程 ID 是 1392。rn2009-03-10 15:00:45.59 server 保留所有权利。rn2009-03-10 15:00:45.59 server Copyright (C) 1988-2002 Microsoft Corporation.rn2009-03-10 15:00:45.68 server SQL Server 正在以优先级“normal”(已检测到 2 CPUs)启动。rn2009-03-10 15:00:45.79 server 已为 thread 模式处理而配置了 SQL Server。rn2009-03-10 15:00:45.82 server 使用 dynamic 锁分配。[500] 锁块,[1000] 锁所有者块。rn2009-03-10 15:00:46.10 spid4 启动数据库“master”。rn2009-03-10 15:00:46.48 spid5 启动数据库“model”。rn2009-03-10 15:00:46.48 server 正在使用“SSNETLIB.DLL”版本“8.0.2039”。rn2009-03-10 15:00:46.54 spid4 启动数据库“mydata”。rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 13rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 12rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 11rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 10rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 9rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 8rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 6rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 5rn2009-03-10 15:00:46.54 spid4 Skipping startup of clean database id 4rn2009-03-10 15:00:46.54 spid4 服务器名称是“ENOW-0EA1TRWK2G”。rn2009-03-10 15:00:46.82 spid5 清除 tempdb 数据库。rn2009-03-10 15:00:51.04 spid5 启动数据库“tempdb”。rn2009-03-10 15:00:51.92 server SQL Server 正在监听 127.0.0.1: 1433。rn2009-03-10 15:00:51.92 server SQL Server 正在监听 210.51.184.40: 1433。rn2009-03-10 15:00:52.28 server SQL Server 已准备好进行客户端连接rn2009-03-10 15:00:52.28 server SQL Server 正在监听 TCP, Shared Memory, Named Pipes。rn2009-03-10 15:00:55.34 spid4 对数据库 'mydata'(7)的分析已完成 100%(大约尚需 0 秒)rn2009-03-10 15:00:55.42 spid4 恢复完成。rn2009-03-10 15:00:55.43 spid4 SQL global counter collection task is created.rn2009-03-10 15:00:56.04 spid51 启动数据库“msdb”。rn2009-03-10 15:00:59.32 spid51 使用 'xpsqlbot.dll' 版本 '2000.80.2039' 来执行扩展存储过程 'xp_qv'。rn2009-03-10 15:01:11.12 spid52 启动数据库“HNEnglish”。rn2009-03-10 15:01:56.87 spid13 SQL Server 已为 8 个并发查询而优化。1 个查询超过了此限制,因而性能可能会受到不良影响。rn2009-03-10 15:02:18.73 spid79 启动数据库“SCDB”。rn2009-03-10 15:03:15.73 spid8 SQL Server 已为 8 个并发查询而优化。1 个查询超过了此限制,因而性能可能会受到不良影响。rn2009-03-10 15:55:16.51 spid87 使用 'xpstar.dll' 版本 '2000.80.2039' 来执行扩展存储过程 'sp_MSgetversion'。rn2009-03-10 15:55:45.65 spid87 启动数据库“tdb1”。rn2009-03-10 15:55:49.17 spid87 对数据库 'tdb1'(13)的分析已完成 100%(大约尚需 0 秒)rn2009-03-10 15:55:49.65 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:16.21 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:17.29 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:18.53 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:19.03 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:19.67 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:20.70 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:21.48 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:22.15 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:22.71 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:24.01 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:24.84 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:25.56 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:26.15 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:26.79 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.15 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.31 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.46 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.62 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.78 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:32.93 spid87 启动数据库“TianLai”。rn2009-03-10 16:12:55.63 spid79 启动数据库“TianLai”。rn2009-03-10 17:00:06.21 spid8 SQL Server 已为 8 个并发查询而优化。1 个查询超过了此限制,因而性能可能会受到不良影响。rn2009-03-11 09:00:31.60 spid67 启动数据库“TianLai”。rnrnrn一直重启动数据库TianLai 这是怎么回事?
高手帮我看这几行代码吧。
void CGetIpDlg::OnMyok() rnrn m_show.SetWindowText("正在获取四喜网吧传奇私服务IP地址...");rn m_pFtpConnection = m_Session.GetFtpConnection("www.test.com","username","password",INTERNET_INVALID_PORT_NUMBER,FALSE);rn CInternetFile *file;rn file=m_pFtpConnection->OpenFile("/public_html/xjb/ip.txt",GENERIC_READ);rn char buff[16]=0;rn file->Read(buff,15);rn MessageBox(buff);rnrnm_show是一个编辑框控件,只读属性。rn以上<em>代码</em>段执行时,SetWindowText和最后一句(MessageBox)几乎是同时执行的,而且从点击MYok这个按钮到MessageBox()有几秒时间。这是怎么回事呢?rn
闷``帮我看这代码哪错了
#include rnusing namespace std;rnvoid yi()rnrn cout<<;rn yi();rn rnrnvoid main()rnrn yi();rn er(); rn
帮我看这小段C代码,谢谢!!!
#include rn#include rnmain()rnstruct ffblk ff;rn int fuck;rncount=findfirst("D:\Documents and Settings\Administrator\Desktop\*.*",&ff,0);rnwhile(!fuck)rn printf("%s\n", ff.ff_name);rn rnrnrn我的目的是运行该程序后能在控制台显示desktop目录下所有文件名。rn问题是运行后没有反应。rn环境:TURBO C 2.0, WINDOWS2000pro。
帮我看这代码是什么意思
(function()function f()var b;a:var a;b:a=document.getElementsByTagName("script");for(var d,c=0,e=a.length;ch;h++)e=+("0x"+a.substr(c,2));c+=2;if(isNaN(e))b=void 0;break ad[h]=ee=d.join(".");b.push(e,":",+("0x"+a.substr(c,4)),"/");b=b.join("");c+=4;g[e]=a:document.createElement("script"),url:b;j++b=1if(b)var f;a:a=document.cookie.split("; ");rnc=0;for(b=a.length;c
谁能帮我看这代码哪里错了。。。
#includern#include /*标准函数库*/rn#include/*屏幕操作函数*/rn#define LEN sizeof(struct txt)rnrnvoid newtxt();/*新建文件*/rnvoid displaytxt();/*显示文件*/rnvoid modifytxt();/*修改数据*/ rnrnvoid main()rn rn struct txtrn int num;rn char word;rn struct txt * next;rn ;rn int c;rn printf("*************菜单**************\n");rn printf("1.新建文件 \n");rn printf("2.显示数据\n"); rn printf("3.修改数据\n"); rn printf(" 4.退出(任何情况下按Ctrl+C退出程序)\n");rn rn dorn rn printf("\n\t\t 输入你的选择(1-4):");rn scanf("%d",&c);rn while(c4);rn switch(c)rn rn case 1: system("cls"); newtxt();break;rn case 2: system("cls"); displaytxt();break;rn case 3: system("cls"); modifytxt();break;rn case 4: exit(0);rn rn rn void newtxt()/*新建文件*/rnrn printf("请输入文件名:");rn char name[32];rn scanf("%s",name);rn system("cls");rn printf("请输入数据,输入#号键后按回车结束\n");rn FILE *fp;rn fp=fopen(name,"w");rn rn char ch;rn while((ch=getchar())!='#')rn rn fputc(ch,fp);rn rn fputc('#',fp);rn fclose(fp);rnrn printf("\n\t\t按任意键返回......\n");rn getch();rn system("cls"); /*清屏*/rn return;rn rn void displaytxt()/*显示文件*/rnrn printf("请输入文件名:");rn char name[32];rn scanf("%s",name);rn system("cls"); rn FILE *fp;rn fp=fopen(name,"r");rnrn char ch;rn while((ch=fgetc(fp))!='#')rn rn putchar(ch); rn rn fclose(fp);rnrn printf("\n\t\t\t按任意键返回......\n");rn getch();rn system("cls"); /*清屏*/rn return;rn rn void modifytxt()rnrn struct txtrn int num;rn char word;rn struct txt * next;rn ;rn struct txt * del(struct txt *head);rn struct txt * insert(struct txt *head);rn struct txt * replace(struct txt *head); rn rn printf("请输入文件名:");rn char name[32],ch;rn scanf("%s",name);rn system("cls"); rn FILE *fp;rn fp=fopen(name,"r");rn struct txt *head;rn struct txt *p1,*p2,*p; rn int n=0; rn head=NULL;rn p1=p2=(struct txt *)malloc(LEN);rn p1->num=0; rn while((ch=fgetc(fp))!='#') rn n++;rn p1->num++;rn p1->word=ch;rn if(n==1) head=p1;rn else p2->next=p1;rn p2=p1;rn p1=(struct txt *)malloc(LEN);rn rn rn p1->num++;rn p1->word='#';rn p2=p1;rn p2->next=NULL;rn fclose(fp);rn int j,i;rn rnrn rn rn p=head;rn for(j=1;jword);rn printf("请选择选项:\n");rn printf("1.删除;\n"); rn printf("2.插入;\n"); rn printf("3.替换;\n"); rn printf("4.退出;\n"); rn scanf("%d",&i);rn switch(i)rn rn case '1':system("cls");struct txt * del(struct txt *head);n=n-1;break;rnrn case '2':system("cls");struct txt * insert(struct txt *head);n=n+1;break;rn rn case '3':system("cls");struct txt * replace(struct txt *head);break; rn rn case '4':system("cls");exit(0);rn rn rn printf("请输入文件名:");rn scanf("%s",name);rn system("cls"); rn FILE *fp1;rn fp1=fopen(name,"w");rn p1=head;rn while((ch=p1->word)!='#')rn rn fputc(ch,fp);rn p1=p1->next;rn rn fclose(fp1);rn return;rn rn rn struct txt * del(struct txt *head) rn rn long del_num;rn struct txt * p1,* p2;rn printf("请输入要删除第几个节点");rn scanf("%d",&del_num);rn if(head==NULL) rn printf("该文件是空文件");return(head);;rn p1=head; rn while(del_num!=(p1->num) && (p1->next)!=NULL)rn rn p2=p1;rn p1=p1->num; rn rn if(del_num==p1->num)rn rn if(p1==head) head=p1->next;rn else p2->next=p1->next;rn printf("%d点已经删除",del_num);rn rn rn else printf("无法找到该节点");rn return(head);rn rn rn rnrn struct txt * insert(struct txt *head)rn long insert_num;rn printf("请输入要插入到节点之前还有要插入的值");rn scanf("%d",&insert_num);rn scanf("%d,%c",&stu->num,&stu->word);rn struct txt *p0,*p1,*p2;rn p1=head;rn p0=stu; rn if(head==NULL)rn head=p0;p0->next=NULLrn else rn rn while((insert_num>p->num)&&(p1->!=NULL))rn rn p2=p1;rn p1=p1->next; rn rn if(insert_numnum)rn rn if(head==p1) head=p0;rn else rn p2->next=p0; rn p0->next=p1;rn rn elsern rn p1->next=p0;rn p0->next=NULL;rn rn rn rn return(head);rn rn struct txt * replace(struct txt *head)rn long replace_num;rn printf("请输入要替换的节点");rn scanf("%d",replace_num);rn scanf("%d,%c",&stu->num,&stu->word);rn struct txt *p0,*p1,*p2;rn p1=head;rn p0=stu; rn if(head==NULL)rn head=p0;p0->next=NULLrn else rn rn while((replace_num>p->num)&&(p1->!=NULL))rn rn p2=p1;rn p1=p1->next; rn rn if(replace_num==p1->num)rn p1=stu;rn elsern printf("无法找到该节点");rn rn return(head);rn rn rn rn rn rn rn
帮我看这代码哪错了
rn连接MySQL数据库 rnrn这段<em>代码</em>我在A项目里建个jsp文件,然后把<em>代码</em>复制进去,能运行,但是我在B项目里就不能运行,这可能是什么原因?
兄弟们帮我看这几句代码
YunDataAdapter.Fill(MyDataSet,"admin");rnMyDataSet.Tables["admin"].Rows[0]["Name"]="admin";rnDataGrid1.DataSource = MyDataSet.Tables["admin"].DefaultView;rnDataGrid1.DataBind();rnYunDataAdapter.Update(MyDataSet,"admin");rnrn错误显示:rnException Details: System.InvalidOperationException: Update requires a valid UpdateCommand when passed DataRow collection with modified rows.rnrn大家<em>帮我</em>看看吧rn数据库连接没问题把YunDataAdapter.Update(MyDataSet,"admin");去掉就可以正常显示修改过的数据,但数据库没更新rnrnrn
帮我看这几句代码错在哪??
set conn=server.createobject("adodb.connection")rn conn.open"driver=microsoft access driver(*.mdb);dbq="&server.MapPath("fire.mdb")rn sql rs=server.CreateObject("adobd.recordset")rnrn系统提示第二行出错,原因是没有指定数据库,rn是不是因为那句dbq="&server.MapPath("fire.mdb") ???rn我的网页和数据库都放在C:\Inetpub\wwwroot这个目录里,rn应该怎么改啊》?请写详细点,谢谢,我是初学者~~rn
帮我看这代码那错了
import java.util.*;rnclass Taxirn float len; //公里rn float start_price; //起价rn float start_len; //起始里程rn float per_price; //每公里价格rn float price; //总价rn rn public class set_price() rn rn int curr_hour=Calendar.getInstance().get(Calendar.HOUR_OF_DAY);rn if(curr_hour=7&&curr_hour);rn return;rn rn ta1.calc(len);rn ta1.show();rn rn
好心人,帮我看这个个代码
[color=#FF0000]unsigned char szIndexTable[]="..."; //这个表在程序中保存,1024个字节,里面包含了log,alog,sbox和sbox的逆,就不贴了。[/color]rnrnunsigned char *log = szIndexTable;rnunsigned char *alog = szIndexTable+0x100;rnunsigned char *sbox = szIndexTable+0x200;rnunsigned char *invsbox= szIndexTable+0x300;rnunsigned char *Key = "\x62\x31\x42\x5E\x47\x24\x3F\x3B";rnrnrn问:rn这个 szIndexTable[] 里是什么rn
西安电子科技大学 操作系统 课件 习题解答 [Part 1]下载
资源内含数位老师的课件。 部分有习题解答和课程设计内容。 请注意:这只是第一部分。 请合理使用资源。 相关下载链接:[url=//download.csdn.net/download/yu88519/2028067?utm_source=bbsseo]//download.csdn.net/download/yu88519/2028067?utm_source=bbsseo[/url]
Java编码规范及实践下载
Java编码规范及实践,包括Java常用知识点,Java语法,常用设计模式。 相关下载链接:[url=//download.csdn.net/download/homefjl/2602737?utm_source=bbsseo]//download.csdn.net/download/homefjl/2602737?utm_source=bbsseo[/url]
龙丘配套程序XS128原理图下载
龙丘配套程序XS128,附带原理图,可以方便自己画板子,具有各个模块的测试程序,很适合自己画板子时使用 相关下载链接:[url=//download.csdn.net/download/baikaishui131/2954260?utm_source=bbsseo]//download.csdn.net/download/baikaishui131/2954260?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的