请老师看看,mvc使用ajax, 为什么"new{id=obj.Id}"这个地方出错 [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs9
本版专家分:56438
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2019年8月 .NET技术大版内专家分月排行榜第三
2019年6月 .NET技术大版内专家分月排行榜第三
2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
Bbs3
本版专家分:609
Bbs5
本版专家分:3209
Blank
GitHub 绑定GitHub第三方账户获取
Bbs6
本版专家分:9062
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs3
本版专家分:609
Bbs7
本版专家分:12051
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
领英 绑定领英第三方账户获取
Blank
银牌 2019年8月 总版技术专家分月排行榜第二
Blank
红花 2019年8月 .NET技术大版内专家分月排行榜第一
看看为什么出错
请<em>看看</em><em>为什么</em>会<em>出错</em>rnrnvo<em>id</em> GovLeft::OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult) rnrn InhabitantHtm=m_wndTree.GetSelectedItem();rn int dialong<em>id</em>=m_wndTree.GetItemData(InhabitantHtm); rn switch(dialong<em>id</em>)rn rn case 11:rn GovInhabitantAdd dd;rn dd.DoModal();rn case 99:rn GovSetDataOptions aa;rn aa.DoModal();rn rnrnrn提示错误:rne:\备份程序库\Studio\Infohelper\GovLeft.cpp(61): warning C4244: 'initializing' : conversion from 'DWORD_PTR' to 'int', possible loss of datarne:\备份程序库\Studio\Infohelper\GovLeft.cpp(67): error C2360: initialization of 'dd' is skipped by 'case' labelrn
老师帮忙看看这个
s=一个3为数的数,如:569rn那么现在要求出:rna=?个位上的数rnb=? 十位上的数rnc=? 百位上的数rnd=? 三个数的最大数rne=? 三个数的最小数rnf=? 三个数当中有几个奇数(1,3,5,7,9)为奇数,如s=569,那么f=2,因为569中有两个奇数,如550,也一样f=2rng=?三个数中有几个大数(5,6,7,8,9)为大数,如s=569,那么g=3,因为569中3三个数全都是大数,如099那么g=2rnf=?和g=?最好用 rnCase 1, 3, 5, 7, 9rnf=?rnCase 5, 6, 7, 8, 9rng=?rn谢谢rn
请大家看看这个地方有什么问题
提示说Parse error: parse error, unexpected T_STRING in /home/fgdl/public_html/24/login.php on line 43rnrn那行是rnmsg_box('祅魁祘Α',' 篈癸ぃ癬戈岿粇眤礚猭祅魁 叫浪琩眤计誹 ');rnrn该函数的定义如下:rnrnfunction msg_box($title,$content) rnglobal $titlecolor,$bordercolor,$subcolor,$backgroundcolor,$tablew<em>id</em>th;rnprint <<rn rn rn rn rn $titlern rn rn $contentrn rn rn rn rn rn rn rn rnEOT;rnrn
老师们帮我看看这个问题
我学习写的一个ERP小软件,前台销售界面先调用存储过程A判断库存表里的数量是否满足本次销售,如果满足,再调用存储过程B,B执行后带回插入销售表里标识字段产生的djh,前台再用返回的djh用FOR循环语句循环调用存储过程C和D,其中D是修改库存表中的库存的。rn在C/S结构下,两台或更多工作站同时工作,会不会发生当A已经判断库存数量满足时,还没调用D时,另一台工作站先行修改了库存,导致库存不足?rn补充:我不想用事务控制,太麻烦!
帮我看看这个 new!!!
DWORD seg = DEF_STR_LEN + 1;rnTCHAR* pszBuffer = <em>new</em> TCHAR[seg];rnrn这样<em>new</em>有什么问题吗?
请高手看看*的地方为什么不对
Dim conn As New SqlClient.SqlConnection()rn conn.ConnectionString = "data source=LINSEN\LOCAL;initial catalog=book;" & _rn "integrated security=SSPI;persist security info=False;" & _rn "workstation <em>id</em>=LINSEN;packet size=4096"rn conn.Open()rnrn Dim dataAd As New SqlClient.SqlDataAdapter("select A.Book_<em>id</em>,A.Book_name,A.Denglu_ID,B.Denglu_ID " & _rn "from Guanli_Tab AS A, Denglu_Tab AS B WHERE A.Denglu_ID=B.Denglu_ID", conn)rn Dim dataSe As New DataSet()rn dataAd.Fill(dataSe, "Guanli_Tab")rn Me.DataGr<em>id</em>1.RowHeadersVisible = Falsernrn Dim gd As DataRelation = New DataRelation("gdRelation", dataSe.Tables("Guanli_Tab").Columns("Denglu_ID"), _rn dataSe.Tables("Denglu_Tab").Columns("Denglu_ID"))rn dataSe.Relations.Add(gd)*********rnrn Dim fk As ForeignKeyConstraintrn fk = New ForeignKeyConstraint("gdConstraint", dataSe.Tables("Guanli_Tab").Columns("Denglu_ID"), _rn dataSe.Tables("Denglu_Tab").Columns("Denglu_ID"))rn fk.UpdateRule = Rule.Cascadern fk.AcceptRejectRule = AcceptRejectRule.Cascadern dataSe.Tables("gd_tab").Constraints.Add(fk)***********rn dataSe.EnforceConstraints = Truernrn Me.DataGr<em>id</em>1.SetDataBinding(dataSe, "gd_tab")rnrn请高手<em>看看</em>*的<em>地方</em><em>为什么</em>不对????
[求助]为什么使用new CachedRowSetImpl()时会出错
这里<em>使用</em>com.sun.rowset.CachedRowSetImpl和javax.sql.rowset.CachedRowSet创建一个CachedRowSet对象,可一运行到<em>new</em> CachedRowSetImpl()语句,就抛出java.lang.NullPointerException异常rn这是怎么回事?
能不能看看这个Ajax为什么没有效果
AjaxTextClient.aspx的htmlrnrn rn rnrn rn rn rn rn rnrnrnAjaxTextServer.aspx.cs内容的主体部分:rnrn private vo<em>id</em> Page_Load(object sender, System.EventArgs e)rn rn string test<em>id</em> = "";rn if (Request.QueryString.Keys.Count > 0 && Request.QueryString["test<em>id</em>"].Length > 0)rn rn test<em>id</em> = Request.QueryString["test<em>id</em>"]; rn rnrn if(test<em>id</em>=="1")rn rn//将XML生成DataSet rnDataSet ds = GetPortData("PortParameter.xml");rn DataSet ds1 = GetPortData("ShipDeclare.xml"); rn for(int i=0;i");rn break;rn case "BB":rn ii++;rn Response.Write("");rn break;rn rn tt++;rn yy+=15;rn xx+=2;rn rn rn Response.Write("");rn rn ds.Clear();rn ds1.Clear();rn rn rnrnrnAjaxTextClient.aspx页面首次运行时,鼠标移到图片上会出现AjaxTextServer.aspx中的Response.Write结果,但当XML文件的内容改变后,再将鼠标移到图片上,却没有变化了,玩Ajax的高手能不能<em>看看</em>是什么原因?
大家看看这个AJAX为什么不能执行
[code=JScript]rnfunction xml() rn var XMLHTTP;rn if (window.XMLHttpRequest)rn XMLHTTP = <em>new</em> XMLHttpRequest();rn elsern XMLHTTP = <em>new</em> ActiveXObject("Microsoft.XMLHTTP");rn XMLHTTP.onreadystatechange = function () //用断点看了,这句之后就直接跳出整个函数了,if和else里的语句都没有执行,readyStage为0,这是<em>为什么</em>?rn if (XMLHTTP.readyState == 4 && XMLHTTP.status == 200) rn document.getElementById("ContentContent").innerHTML = XMLHTTP.responseText;rn XMLHTTP.open("get", "NewsShow.aspx?Id=1", true);rn XMLHTTP.send()rn rn else rn alert(XMLHTTP.readyState);rn alert(XMLHTTP.status);rn rn rnrn[/code]
请帮我看看执行这个ASP为什么出错??
rnrn<> 1 then rn IsVal<em>id</em>Email = false rn exit function rnend if rnfor each name in names rn if Len(name) <> 2 and i <> 3 then rn IsVal<em>id</em>Email = false rn exit function rnend if rnif InStr(email, "..") > 0 then rn IsVal<em>id</em>Email = false rnend if rnend function rn%> rnrnrn checkemail rn rn rn rn rnrnrnrn " method="post">rn rn rn emailrn rn rnrnrnrnrnrn运行的时候,老提示错误类型:rnMicrosoft VBScript 编译器错误 (0x800A0408)rn无效字符rn/cerc/web/board/Noname1.asp, line 11rn IsVal<em>id</em>Email = falsernrn
请各位大虾看看这个单元有什么问题?为什么出错
unit Unit2;rnrninterfacernrnusesrn SysUtils,classes,QControls,ExtCtrls,Dialogs;rntypern myShape=class(Tshape)rn publicrn name:String;rn <em>id</em>:integer;rn describe:String;rn procedure SeeInfo();rn constructor Create(parName:String; parId:integer; parDescribe:String; owner:TComponent);rn procedure myShapeMouseDown(Sender: TObject; Button: TMouseButton;rn Shift: TShiftState; X, Y: Integer);rn end;rnrnimplementationrnrnprocedure myShape.SeeInfo();rnbeginrn showMessage('name:'+name+#13+'<em>id</em>:'+intToStr(<em>id</em>)+#13+'describe:'+describe);rnend;rnrnconstructor myShape.Create(parName:String; parId:integer; parDescribe:String; owner:TComponent);rnbeginrn inherited create(Owner);rn name:=parName;rn <em>id</em>:=parId;rn describe:=describe;rn onMousedown:= myShapeMouseDown;rnend;rn ====================================================================rn 上面一行<em>出错</em>,提示信息如下: rn Incompatible types: 'Controls.TMouseButton' and 'Unit2.TMouseButton'rn ====================================================================rnrnprocedure myShape.myShapeMouseDown(Sender: TObject; Button: TMouseButton;rn Shift: TShiftState; X, Y: Integer);rnbeginrn SeeInfo();rnend;rnrnend.rn
请帮忙看看这个程序中的delete[]为什么出错!!
long * pANarr=<em>new</em> long[maxarr];rnrnrn memset(pANarr,0, sizeof(pANarr[0]) * maxarr);rn pANarr[0]=1;rn pANarr[1]=2;rn pANarr[2]=3;rn long i,j;rn i=4;rn CTime time1,time2;rn time1=CTime::GetCurrentTime();rnrn long label=2;rn while((label),label,i);rn label++;rn break;rn rnrn rn i++;rn rn delete []pANarr;//这里出现内存异常错误:after normal block......rnrnrn去掉while中的语句的话 delete []就没有问题了,到底什么问题,请帮忙!!
请帮忙看看这个程序为什么出错
请帮忙<em>看看</em><em>这个</em>程序<em>为什么</em>会<em>出错</em>。rnrn<em>为什么</em>我用QueryTemp执行SQLString时,就报错‘access violation’rn而我将换用TQuery组件Query1(已经放在FORM中的)执行SQLString时,rn就正确。谢谢rnrnprocedure TFrmGradeQuery.DBLookupComboBox1CloseUp(Sender: TObject);rnvarrn AllNum,SuccessNum,FailNum:integer;rn //QueryTemp:TQuery;rn SQLString:string;rnbeginrn if DBEdit1.Text='' thenrn showmessage('数据查询错误:'+#13#10+'原因:没有找到此班级')rn elsern beginrn tryrn ComboBox2.SetFocus;rn SQLString:='SELECT DISTINCT COUNT(Grade.Stu_no) AS AllNum ';rn SQLString:=SQLString+'FROM "Grade.db" Grade WHERE Grade.Class_no='''+DBEdit1.Text+'''';rn Query1.Active:=false;rnrn //QueryTemp.DatabaseName:='Database1';rn Query1.SQL.Clear;rn Query1.SQL.Add(SQLString);rn Query1.Active:=true;rn AllNum:=Query1.FieldByName('AllNum').AsInteger;rn LblClassNum.Caption:=IntToStr(AllNum);rn exceptrn on E:Exception dorn beginrn showmessage(E.classname+#13#10+E.message);rn Query1.Active:=false;rn end;rn end;rn end;
大家进来看看这个套接字为什么出错
客户端[code=Java]package server;rnrnimport java.io.BufferedReader;rnimport java.io.BufferedWriter;rnimport java.io.InputStream;rnimport java.io.InputStreamReader;rnimport java.io.OutputStream;rnimport java.io.OutputStreamWriter;rnimport java.net.InetAddress;rnimport java.net.Socket;rnrnpublic class Lesson10clientrn public static vo<em>id</em> main(String args[])rn client();rn rn public static vo<em>id</em> client()rn rn tryrn Socket s = <em>new</em> Socket("127.0.0.1",1999);rn InputStream ips = s.getInputStream();rn InputStreamReader ipsr = <em>new</em> InputStreamReader(ips);rn BufferedReader br = <em>new</em> BufferedReader(ipsr);rn rn String strline = br.readLine();rn if(strline !="")rn System.out.println(strline);rn OutputStream ops = s.getOutputStream();rn OutputStreamWriter opsw = <em>new</em> OutputStreamWriter(ops);rn BufferedWriter bw = <em>new</em> BufferedWriter(opsw);rn bw.write("this is kiss wen");rn bw.flush();rn rn s.close();rn rn catch(Exception e)rn e.printStackTrace();rn rn rn[/code]rnrnrn服务端:[code=Java]package server;rnrnimport java.io.BufferedReader;rnimport java.io.BufferedWriter;rnimport java.io.InputStream;rnimport java.io.InputStreamReader;rnimport java.io.OutputStream;rnimport java.io.OutputStreamWriter;rnimport java.net.InetAddress;rnimport java.net.ServerSocket;rnimport java.net.Socket;rnrnpublic class Lesson10 extends Threadrn private Socket s;rn public Lesson10(Socket s)rn this.s = s;rn rn public vo<em>id</em> run()rn try rn OutputStream ops = s.getOutputStream();rn OutputStreamWriter opsw = <em>new</em> OutputStreamWriter(ops);rn BufferedWriter bw = <em>new</em> BufferedWriter(opsw);rn bw.write("hello,welcome you!");rn bw.flush();rn rn InputStream ips = s.getInputStream();rn InputStreamReader ipsr = <em>new</em> InputStreamReader(ips);rn BufferedReader br = <em>new</em> BufferedReader(ipsr);rn String str = br.readLine();rn if(str != "")rn System.out.println(str);rn s.close();rn catch (Exception e) rn e.printStackTrace();rn rn rn public static vo<em>id</em> main(String args[])rn server();rn rn public static vo<em>id</em> server()rn System.out.println("ser");rn tryrn ServerSocket ss = <em>new</em> ServerSocket(1999);rn while(true)rn Socket s = ss.accept();rn <em>new</em> Lesson10(s).start();rn rn //ss.close();rn rn catch (Exception e)rn e.printStackTrace();rn rn rn rn rn[/code]rnrn<em>为什么</em>就是不能传输???rn
帮我看看这个代码为什么出错?
#include rn#include rnrn#pragma comment(lib, "Ws2_32.lib")rnrnmain()rnrn WORD winsockbb;rn WSADATA wsaData;rn int err;rn winsockbb=MAKEWORD(2,2); rn err=WSAStartup(winsockbb,&wsaData);rn if (err!=0)rn std::cout<< "winsockbb no find"<
帮我看看这个存储过程为什么出错!!!!!!!!!!!!!!!!!!
CREATE proc pr_textin @law integer, @text text rnasrnrnbegin rnupdate talbedata set content='' where no=@larnrnDECLARE @ptrval varbinary(16)rnSELECT @ptrval = TEXTPTR(content) rn FROM tabledata where no=@larnrnrnWRITETEXT tabledata.content @ptrval @textrnendrnGOrnrn总提示‘sql server 内部错误,文本管理器无法执行当前语句’
谁能帮我看看这个为什么出错
代码是以下这样的rn[code=java]import java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rn/**rn *rn * @author Ivesrn */rnpublic class AppGraphInOut rn public static vo<em>id</em> main( String args[] )rn rn <em>new</em> AppFrame();rn rn class AppFrame extends JFramern JTextField in=<em>new</em> JTextField(10);rn JButton btn=<em>new</em> JButton("求平方");rn JLabel out = <em>new</em> JLabel("用于显示结果");rn rn public AppFrame()rn rn setLayout(<em>new</em> FlowLayout());rn getContentPane().add(in);rn getContentPane().add(btn);rn getContentPane().add(out);rn btn.addActionListener(<em>new</em> BtnActionAdapter());rn setSize(400,100);rn setDefaultCloseOperation(DISPOSE_ON_CLOSE);rn setVisible(true);rn rn class BtnActionAdapter implements ActionListenerrn rn @Overr<em>id</em>ern public vo<em>id</em> actionPerformed(ActionEvent e)rn rn String s=in.getText();rn double d=Double.parseDouble(s);rn double sq=d*d;rn out.setText(d+"的平方是:"+sq);rn rn rn rn[/code]rn<em>为什么</em>会有下面这样的错误rn[img=https://img-bbs.csdn.net/upload/201506/10/1433922745_760736.jpg][/img]
帮我看看这个语法错误,为什么出错
rnrn<>"" thenrnsql=sql&",isorder="&power1rnend ifrnrnpower2=request.form("power2")rnif power2<>"" thenrnsql=sql&",isordersum="&power2rnend ifrnrnpower3=request.form("power3")rnif power3<>"" thenrnsql=sql&",isbalance="&power3rnend ifrnrnpower4=request.form("power4")rnif power4<>"" thenrnsql=sql&",ispopedom="&power4rnend ifrnrnpower5=request.form("power5")rnif power5<>"" thenrnsql=sql&",isunit="&power5rnend ifrnrnpower6=request.form("power6")rnif power6<>"" thenrnsql=sql&",isask="&power6rnend ifrnrnpower7=request.form("power7")rnif power7<>"" thenrnsql=sql&",ishelp="&power7rnend ifrnrnrnsqls="update users set "&sql&" where user<em>id</em>="&request("<em>id</em>")&""rnresponse.write(sqls)rnset rs=server.CreateObject("adodb.recordset")rnrs.open sqls,connrnrnresponse.write " "rn%>rnrnrn执行报:rnrnupdate users set password='cdcd5072bb1864cd',isorder=0,isordersum=0,isbalance=0,isunit=0,isask=0,ishelp=0 where user<em>id</em>=2 rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrnMicrosoft JET Database Engine 错误 '80040e14' rnrnUPDATE 语句的语法错误。 rnrn/wwwbash/updateusre.asp,行46 rnrnrn我看了下数据结构类型都是对的,我打印出来的这条SQL语句,手工执行都是可以的,<em>为什么</em>ASP执行错误啊rn
帮我看看这个存储过程为什么出错
CREATE proc pr_textin @law integer, @text text rnasrnrnbegin rnupdate talbedata set content='' where no=@larnrnDECLARE @ptrval varbinary(16)rnSELECT @ptrval = TEXTPTR(content) rn FROM tabledata where no=@larnrnrnWRITETEXT tabledata.content @ptrval @textrnendrnGOrnrn总提示‘sql server 内部错误,文本管理器无法执行当前语句’
看看这个setTimeOut为什么出错
rnrn New Document rnrnrnrnrn rnrnrnrn
帮我看看这个memcpy()为什么出错
编写一个函数,作用是把一个char组成的字符串循环右移n个。比如"abcdefghi",如果n=2,则为"hiabcdefg"。rn[code=C/C++]rnvo<em>id</em> LoopMove1(char *pStr, int steps)rnrn int n=strlen(pStr)-steps;rn char tmp[10];rn memcpy(tmp, pStr+n, steps);rn memcpy(pStr+steps, pStr, n);rn memcpy(pStr, tmp, steps);rnrn[/code]rn上面的是程序员面试宝典给出的答案。rn第二个memcpy不是有重叠部分吗,<em>为什么</em>程序还能的出正确的结果呢?
大侠帮助看看这个过程为什么出错
大侠帮助<em>看看</em>,<em>这个</em>过程<em>为什么</em><em>出错</em>rnrncreate or replace procedure jfsj_cust_terminal_retrv_gprs(p_gprs in varchar2)rnasrngprs varchar2;rnrnbeginrn gprs :=p_gprs;rn select CUST_NAME,MSISDN,COUNTY,AGE,VIP_FLAGrn from jfsj_cust_terminal_gl wherern gprs_zc=gprsrn or gprs_sy=gprs;rn rnend jfsj_cust_terminal_retrv_gprs;rnrn<em>出错</em>信息如下:rnrnCompilation errors for PROCEDURE ZHYW.JFSJ_CUST_TERMINAL_RETRV_GPRSrnrnError: PLS-00215: String length constraints must be in range (1 .. 32767)rnLine: 3rnText: gprs varchar2;rnrnError: PL/SQL: Item ignoredrnLine: 3rnText: gprs varchar2;rnrnError: PLS-00320: the declaration of the type of this expression is incomplete or malformedrnLine: 6rnText: gprs :=p_gprs;rnrnError: PL/SQL: Statement ignoredrnLine: 6rnText: gprs :=p_gprs;rnrnError: PLS-00320: the declaration of the type of this expression is incomplete or malformedrnLine: 9rnText: gprs_zc=gprsrnrnError: PL/SQL: SQL Statement ignoredrnLine: 7rnText: select CUST_NAME,MSISDN,COUNTY,AGE,VIP_FLAGrnrn
大虾帮我看看这个查询语句为什么出错
ls_sql="select ID from '+tablename+' using SQLEA;"rndw_1.create(SQLEA.syntaxfromsql(ls_sql,"style(type=gr<em>id</em>)",errors))rnrnrn表是在access数据库里,事物对象sqle。rn调试时errors是查询语句不完整,不知道<em>为什么</em>。
请帮我看看这个出错信息,很简单的!
fatal error C1010: 在查找预编译头指令时遇到意外的文件结尾rn编译时候出的错,一般是什么原因造成的呢?
请高手看看这个出错什么意思
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.
请帮看看为什么AJAX调用没反应?
[code=JScript]rn rnrn调用 scoreTest时setTestResult <em>为什么</em>没有执行呢?rn[/code]
为什么 new 的时候都会出错
[img=http://bbs.5761.cn/attach.aspx?attach<em>id</em>=1552][/img]rn堆栈调用rn[img=http://bbs.5761.cn/attach.aspx?attach<em>id</em>=1553][/img]rn错误提示rn[img=http://bbs.5761.cn/attach.aspx?attach<em>id</em>=1554][/img]rn代码片段 停在<em>new</em> 这里
为什么 new mysqli 会出错
$db = <em>new</em> mysqli('localhost', 'root', '', 'tran');rn$name = 'jack';rnrn$sql_1 = sprintf('INSERT INTO `tb_user` (name)VALUES("%s")',mysql_real_escape_string($name));rnrn$db->query($sql_1);rnrn<em>为什么</em>会出现rnrnWarning: mysql_real_escape_string() [function.mysql-real-escape-string]: [color=#FF0000]Access denied for user 'ODBC'@'localhost'[/color] rnrnWarning: mysql_real_escape_string() [function.mysql-real-escape-string]: [color=#FF0000]A link to the server could not be established in[/color]rnrn这两个句错误的,我知道如果连不上数据库mysql_real_escape_string是会报错的,但我明明连接上了,rn如果换回mysql_connect() mysql_select_db mysql_query()这样的链接就没问题rnrn还有就是我的字段 name 设置的是not null <em>为什么</em>上面的sql语句执行了抛出 Warning 这样严重的错误还会保存一个空值的?not null 不是不能为空否则不能保存的吗?
为什么线程中用New出错
在线程中<em>使用</em>LPTSTR lpszMsg = <em>new</em> TCHAR[12]<em>出错</em>,在其他<em>地方</em>不会,<em>为什么</em>?rn错误:rnafter Normal block(#96) at 0x00A24FB8
请帮忙找出出错地方
-
请帮我看看,我的函数为什么出错?
请帮我<em>看看</em>,我的函数<em>为什么</em><em>出错</em>?rn一下为错误信息:rn行号= 11 列号= 45 错误文本= PL/SQL: ORA-00920: 无效的关系运算符rn行号= 11 列号= 9 错误文本= PL/SQL: SQL Statement ignoredrn行号= 12 列号= 45 错误文本= PL/SQL: ORA-00920: 无效的关系运算符rn行号= 12 列号= 9 错误文本= PL/SQL: SQL Statement ignoredrn行号= 17 列号= 5 错误文本= PLS-00103: 出现符号 "END"在需要下列之一时: begin case declare exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe rnrn函数内容rn (rn parWStr in VARCHAR rn)rnreturn varchar2rnasrnbeginrn declarern rn beginrn rn delete from sys_user05 where parWStr; rn delete from sys_user02 where parWStr;rn return '02';rnrn exception rn when others then rn end;rn rnend F_DELETE_USER ;
请大家帮忙看看为什么出错
-
请高手帮忙看看为什么出错
int amountrnstring usednamernint cr_result,ll_countrnstring ls_namernls_name =sle_name.textrn//计算记录个数rnselect count(*) into :amount from ABC_LOGIN;rn//建立游标rn//declare cr_loginname cursor for select LOGINNAME from ABC_LOGIN;rnif isnull(ls_name) or ls_name="" thenrn messagebox("提醒!","用户名不能为空!")rnend ifrnrnselect count(*) into :ll_count from ABC_LOGIN where loginname = :ls_name using sqlca; rnmessagebox("提醒!",ls_name + '|'+ sle_pass.text + '|' + string(ll_count))rnif ll_count >0 thenrn messagebox("提醒!","用户名already exist!")rnelsern messagebox("success!","用户注册!")rn insert into ABC_LOGIN values(:ls_name,:sle_pass.text);rn messagebox('test',string(sqlca.sqlcode))rn if SQLCA.SQLCode = 0 thenrn messagebox("success!","用户注册成功!")rn commit;rn end ifrnend if;rnrnrn可以编译,没错误,可是达不到数据入库的效果,问题应该在rninsert into ABC_LOGIN values(:ls_name,:sle_pass.text);这句上,因为‘test’rn显示的是-1rn
请帮忙看看这样的SQL为什么出错
我在QUERY1的SQL属性里加入了SELECT A,B,A+B AS AB FROM TBA WHERE C=:Drn在PARAMETERS里加入了参数D。然后我在程序里想改变SQL语句,rnString sql="SELECT A,B,A+B+E AS AB FROM TBA WHERE C=:D";rnQuery1->Close();rnQuery1->SQL->Clear();rnQuery1->SQL->Add(sql);rnQuery1->Open();rn结果<em>出错</em>“不正常地定义参数对象,提供了不一致或不完整的信息”。请问这样的SQL写法有什么问题,该怎么改?rn
请帮我看看调用dll为什么出错
vo<em>id</em> CDlltestcallDlg::OnButton1() rnrnint (*p)(int a);rnHINSTANCE hDLL;rnp ll;rnint a;rnhDLL=LoadLibrary("d:\\c++\\Dlltest.dll");//加载动态链接库MyDll.dll文件;rnll=(p)GetProcAddress(hDLL,"test");rnMessageBox("success!");rna=ll(7);rnMessageBox("success!");rnFreeLibrary(hDLL);//卸载M // TODO: Add your control notification handler code herern rnrn单击按钮后出现第一个seccess但是随后出现0x0000000内存不能读rn<em>为什么</em>?rn
日期比较为什么出错?请帮看看?
数据库中的日期是这种格式2004-10-13 11:44:50rnrn比如要取2004-10-13 之后的数据 我用 (datediff('d',date,"&dates&")>=0)rndates 是用户输入的2004-10-13<em>这个</em>值rnrn但是会<em>出错</em>,请帮我<em>看看</em>,怎样才能得到我要的结果rnrn还有2004-10-13用这种格式的不会<em>出错</em>,但得不到我想要的结果,rn用2004-10-13 11:44:50长日期格式会出现rn语法错误 (操作符丢失) 在查询表达式 'pass<>'1' and (datediff('d',date,2004-10-13 11:44:50)>=0) and int(jy)=int('0')' 中。rn这各错误
为什么出错?请大家帮我看看
vo<em>id</em> __fastcall TForm1::Button1Click(TObject *Sender)rnrn AnsiString sSql;rn sSql = "CREATE TABLE" +Edit1->Text+ "(编号 int IDENTITY (1, 1) NOT NULL PRIMARY KEY CLUSTERED,姓名 varchar(64) NULL , 职称 varchar(64) NULL )";rn Query1->Close();rn Query1->SQL->Clear();rn Query1->SQL->Add(sSql);rn Query1->ExecSQL();rnrn弹<em>出错</em>误:Invaild use of keyword.rn Token:IDENTITY rn Line Number:1.
请大家帮我看看为什么出错??
我为了重新设置datareport的数据源,想利用SQL语句分别把需要的字段从两个表中提取出来作为adodc1数据源,然Set DataReport1.DataSource=Adodc1.Recordset,但是我可能偷了个懒,我就只写了select * from table1,table2,因为我想反正我只要绑定其中的几个字段,查询到的范围虽然大了点,但是没关系的,但是运行的时候它指出是“无效的数据源”,不知道<em>为什么</em>?赐教
请帮我看看程序为什么出错!
import java.awt.*;rnrnpublic class Picasso extends ExitableJFramernrnInsets insets;rnrnpublic vo<em>id</em> paint(Graphics g) rnsuper.paint(g);rnif (insets == null)rninsets = getInsets();rnrng.translate(insets.left,insets.top);rng.fillRect(30,10,200,100);rng.clearRect(50,30,70,50);rng.drawRect(60,50,40,20);rng.drawLine(10,55,250,55);rnrnpublic static vo<em>id</em> main(String args[]) rnFrame f = <em>new</em> Picasso();rnf.setTitle("Picasso");rnf.setSize(300,200);rnf.show();rnrnrnrnrnrn
请大家帮我看看这样为什么出错
ls_CART_NO=trim(dw_1.getitemstring(1,'CART_NO'))rnselectblob PDF into :lb_1 from T_CERTIFICATE where CART_NO=:ls_CART_NO;rnrnif len(lb_1)=0 thenrn ole_1.clear()rnelsern ole_1.ObjectData=lb_1rnend ifrnrn程序执行到ole_1.ObjectData=lb_1,报错:“Bad runtime function reference at line 13”rnrn请问大家错误在哪里?数据库中是有这样的PDF文件的
请大神看看这段代码有什么问题,为什么每次出错地方不一样。单步调试的时候不出错
Random r = <em>new</em> Random();rn int[,] Math = <em>new</em> int[9, 9];rn int a = 0;rn List li;rn private vo<em>id</em> Form1_Load(object sender, EventArgs e)rn rn int x = 0;rn for (int i = 0; i < 9; i++)rn rn li = <em>new</em> List 1, 2, 3, 4, 5, 6, 7, 8, 9 ;rn for (int j = 0; j < 9; j++)rn rn x = li[r.Next(0, li.Count)];rn List lisw = li;rn for (int c = 0; c <= i; c++)rn rn while (Math[c, j] == x)rn rn x = lisw[r.Next(0, lisw.Count)];rn lisw.Remove(x);rn rn rn li.Remove(x);rn Math[i, j] = x;rn Label l = <em>new</em> Label();rn l.Text = Math[i, j].ToString();rn l.Name = Math[i, j].ToString();rn l.AutoSize = true;rn l.Visible = true;rn l.W<em>id</em>th = 30;rn l.Height = 15;rn l.BackColor = System.Drawing.Color.Red;rn l.Location = <em>new</em> System.Drawing.Point(j * 40, i * 20);rn this.Controls.Add(l);rn rn rnrn
请各位老师帮忙看看
old 13: where cendat=&cendatern<em>new</em> 13: where cendat=20120721rn20120721|AA183|中国银行南陵陵阳中路支行|08565|||4||||rn20120721|08566|中国银行南陵陵阳中路支行|AA183|||5||||rn20120721|08567|中国银行繁昌支行|A2844|||3||||rn20120721|AA184|中国银行繁昌支行本部|08567|||4||||rn20120721|08909|中国银行繁昌支行营业部|AA184|||5||||rn20120721|28030|中国银行繁昌支行业务发展部|AA184|||5||||rn20120721|28047|中国银行繁昌支行综合管理部|AA184|||5||||rn20120721|AA185|中国银行繁昌金峨路支行|08567|||4||||rn20120721|08569|中国银行繁昌金峨路支行|AA185|||5||||rn20120721|AA186|中国银行繁昌荻港支行|08567|||4||||rn20120721|08568|中国银行繁昌荻港支行|AA186|||5||||rn20120721|08570|中国银行湾址支行|A2844|||3||||rn20120721|AA187|中国银行湾址支行本部|08570|||4||||rnrn这是shell脚本在linux下的输出 结果是上面这样 rn怎么才呢过把上面两行去掉啊?
老师们进来看看!
小妹我一直是做文员的,可突然经理让我学FLASH,555~~这不是难为我吗...rnrn我想找一位能教我FLASH编程的师傅,请大家帮帮忙好吗?有机会我请吃饭!rnrn因为发在了技术区,所以小妹先问一个问题,那种纯FLASH的网站和我平时看的FLASH动画有什么区别呀?rnFLASH编程需要什么基础吗?用的是什么语言?
各位老师,请看看这里
各位<em>老师</em>,小弟是一名刚刚学习计算机底层问题的学生,今有一个问题,请各位<em>老师</em>指教。 rn问题: rn用C/C++实现一个程序来分析软盘BPB表,FAT表和FDT表及硬盘BPB表,FAT表和FDT表,可用一个程序集中体现,也可以多个程序分割实现,可<em>使用</em>命令行参数界面,全屏幕菜单界面和GUI界面(推荐) rn要求: rn注释要准确清晰,有一定思路,最好写出FAT16和FAT32两种 rn感谢各位<em>老师</em>,在小弟学习过程中的指导。
这个地方为什么是undefined?
[code=JScript]rn rnrn rn 范玮琪 - 那些花儿rn 温岚 - 屋顶(周杰伦 对唱版)rn 张韶涵 - 娃娃rn 孙楠&韩红 - 美丽的神话rnrnrn[/code]
为什么这个地方要这样!!
大家<em>看看</em>初学者了这段代码我有问题要问题:rnnamespace ConsoleApplication10rnrn class Programrn rn static vo<em>id</em> Main(string[] args)rn rn Console.WriteLine("输入字符");rn string wu = Console.ReadLine();rn Console.WriteLine("输入个数0", wu.Length);rn string kgdleeq="";rn for (int a = wu.Length-1; a>=0; a--)rn rn kgdleeq += wu[a];rn rn Console.WriteLine("输出相反字符0,反回多少个数1", kgdleeq,kgdleeq.Length);rn Console.ReadKey(); rn rn rnrn 其他<em>地方</em>都看的懂就是 for(int a=wu.Length-1;a>=0;a--)rn rn kgdleeq += wu[a];rn rn 看不懂啊,<em>为什么</em>要int a=wu.Length-1才能使字符相反了,我是实在搞不明白这原理。大家帮我解答一下,谢谢rn
为什么这个地方这么恐怖
这是一个老的小区,经常看小区里的人在那里画个圈烧纸。 真是诡异,第一次半夜两三点听到两个小孩打架,伴随着哭声,真的很恐怖!后来查了一下,别人说可能是猫叫,或许是吧,就这样告诉自己,就这样慢慢淡忘了。 上个周日的晚上,也许是天气热吧,起来喝水,又是两三点的样子,又听到这样诡异的声音,和上次完全不同,好像两个婴儿的哭声,那么逼真,没那个勇气去看究竟是什么。吓得全身都是冷汗,...
这个地方为什么不能传参?
string SQLName = "BAS_CNTR";rnstring[,] FilterColumns= "SIZETYPE", "箱尺寸类型代码" , "CNTRNAME", "箱尺寸类型名称" , "CNTRTARE", "箱皮重" ;rnFindForm y = <em>new</em> FindForm(SQLName,FilterColumns);rnrnrnFilterColumns<em>这个</em>位置报错了。怎么传数组的参数?
帮我看看为什么出错!!
vo<em>id</em> __fastcall TForm1::bbFieldsClick(TObject *Sender)rnrn int i;rnrn ListBox1->Clear();rn for (i = 0; i < tblCustomer->FieldCount; i++)rn ListBox1->Items->Add(tblCustomer->Fields[i]->FieldName);rnrnrn编译错误为:rn[C++ Error] Main.cpp(24): E2288 Pointer to structure required on left s<em>id</em>e of -> or ->*rnrn请问是哪里错了,怎么改!!
请问我这个程序为什么出错
#include rnrnvo<em>id</em> main()rnrn int a, b, c, x, y;rn scanf("%d", x);rn a= x%10;rn b= (x/10)%10;rn c= (x/100)%10;rn y= a*100 + b*10 + c;rn printf("%d", y);rn rnrn代码如上, 我在vc6.0下运行, 输入一个数字后就提示<em>出错</em>了, 不知道<em>为什么</em>?
不知道是为什么,没什么地方出错吧,高手看看
sql script:rn/*取得酒店的本地时间*/rndeclare @hotelDate datetimernselect @hotelDate=htl_dt-1 from cshis.thotel.dbo.htldtrn/*----------------------------------------------处理hotelSum表---------------------------------------*/rn/*核算本日房费 */rndeclare @v1 bigint,@v2 bigintrn/*应收*/rnSELECT @v1=SUM(a.trn_amt)rnFROM cshis.thotel.dbo.transact as a INNER JOINrn cshis.thotel.dbo.account as b ON a.acct_num = b.acct_numrnWHERE (a.trn_dt = @hotelDate) AND (a.trn_cd = '200' ORrn a.trn_cd = '201' ORrn a.trn_cd = '202' ORrn a.trn_cd = '217') AND (b.rm_typ <> '**')rn/*实收*/rnSELECT @v2=SUM(trn_amt)rnFROM cshis.thotel.dbo.transactrnWHERE (trn_dt = @hotelDate) AND (acct_num INrn ((SELECT acct.acct_numrn FROM (SELECT acct_numrn FROM cshis.thotel.dbo.transactrn WHERE (trn_dt = @hotelDate) AND (rm_num <> '')) TRA INNER JOINrn cshis.thotel.dbo.account acct ON TRA.acct_num = acct.acct_numrn WHERE (acct.acct_stus = '5') AND (acct.rm_typ <> '**')))) AND (trn_cd = '200' ORrn trn_cd = '201' ORrn trn_cd = '202' ORrn trn_cd = '217') AND (folio_typ <> 'v')rn/**/rninsert hotelSum values(@hotelDate,'05',@v1,@v2,0)rn/*加入到本地rmtrn表*/rninsert into rmtrn(trn_dt,rt_cd,rm_typ,geo1,org_cd,gst_nums,rm_nums,rm_num,rt_amt)rn(rnSELECT b.trn_dt, a.rt_cd, rtrim(a.rm_typ), a.geo1, a.org_cd, SUM(a.gst_nums) AS gst_nums, rn SUM(a.rm_nums) AS rm_nums, COUNT(*) AS Expr1, SUM(trn_amt) AS Expr2rnFROM cshis.thotel.dbo.account a INNER JOINrn (SELECT trn_dt, acct_num, rm_num, SUM(trn_amt) AS trn_amtrn FROM cshis.thotel.dbo.transactrn WHERE (trn_dt = @hotelDate) AND (rm_num <> '') AND (trn_cd = '200' ORrn trn_cd = '201' ORrn trn_cd = '202' ORrn trn_cd = '217') rn GROUP BY trn_dt, acct_num, rm_num) b ON a.acct_num = b.acct_numrnWHERE (a.rm_typ <> '**')rnGROUP BY b.trn_dt,rtrim(a.rm_typ), a.rt_cd, a.org_cd, a.geo1)rnrnrn----<em>出错</em>信息如下:----rnODBC: 消息 0,级别 18,状态 1rnSQLDumpExceptionHandler: Process 46 generated access violation; SQL Server is terminating this processrn[OLE/DB prov<em>id</em>er returned message: 在 TDS 流中的协议错误]rn
各位看看为什么出错
这好像是masm才能编译的东西rn可是我没见过@和.是什么用法rn顺便介绍介绍有关此方面的书rnrn .model compactrn .386prn .codernrn public @LBARead$qimx10TLBAPacketrnrnrn;vo<em>id</em> LBARead(int Drive, const TLBAPacket &LBAPacket)rn@LBARead$qimx10TLBAPacket proc crn arg @@Drive: word, @@LBAPacket: dwordrnrn push si dsrnrn mov ah,42hrn mov dx,@@Drivern lds si,@@LBAPacketrn int 13hrnrn pop ds sirn retrn endprnrn endrn
帮我看看为什么出错??
typedef struct _Globals rn BOOL fAllowNewUser;rn BOOL fAutoLogonAtBoot;rn BOOL fAutoLogonAlways;rn HANDLE hUserToken;rn PMiniAccount pAccount;rn Globals, * PGlobals;rnrnrnrnPGlobals pGlobals;rnpGlobals = LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT, sizeof(Globals));rn<em>这个</em><em>为什么</em>出现错误:rnerror C2440: '=' : cannot convert from 'vo<em>id</em> *' to 'struct _Globals *'rn Conversion from 'vo<em>id</em>*' to pointer to non-'vo<em>id</em>' requires an explicit cast
帮我看看为什么出错
<em>为什么</em>总是冒出CPU错误,且函数未执行完就返回了!rnrnrnprivatern Private declarations rn publicrn Public declarations rn end;rnrn TModPas=Function(OldPwd:PChar;NewPwd:PChar):Boolean;rnrnvarrn Form1: TForm1;rn ModPassWord:TModPas;rnrnimplementationrnrnrnrn$R *.dfmrnrnprocedure TForm1.Button1Click(Sender: TObject);rnvarrn xx1,xx2:PChar;rn hh:thandle;rnbeginrn hh:=LoadLibrary(PChar('xpformdll.dll'));rn if hh<>0 thenrn @ModPassWord:=GetProcAddress(HH,'ModPassWord');rn if (@ModPassWord)<>nil thenrn if TModPas(ModPassWord)(xx1,xx2) thenrn showmessage(xx1)rn elsern showmessage('nopt');rn FreeLibrary(hh);rnend;
看看为什么SQL出错.
Select Student.StuNO,Student.StuName,Score.StuNO,Score.Chinese,Score.EnglishrnFrom Student Left Join Score On Student.StuNO=Score.StuNOrnrn在一个IDE编程工具中输入如上语句,报错。提示 SQL语句未正确结束。rn该如何做?rnrn其中表有Student,保存学生基本情况,Score保存学生分数。两表以StuNO(学号)连接
看看出错为什么
1>TableView.obj : error LNK2005: "private: static wchar_t const * const CTabPresentAccessor::s_strDefaultStr" (?s_strDefaultStr@CTabPresentAccessor@@0PB_WB) 已经在 TableDoc.obj 中定义rn1>TableView.obj : error LNK2005: "private: static wchar_t const * const CTabProfessionAccessor::s_strDefaultStr" (?s_strDefaultStr@CTabProfessionAccessor@@0PB_WB) 已经在 TableDoc.obj 中定义rn1>TableView.obj : error LNK2005: "private: static wchar_t const * const CTabStudyTypeAccessor::s_strDefaultStr" (?s_strDefaultStr@CTabStudyTypeAccessor@@0PB_WB) 已经在 TableDoc.obj 中定义rn1>TableView.obj : error LNK2005: "private: static wchar_t const * const CTabDepTypeAccessor::s_strDefaultStr" (?s_strDefaultStr@CTabDepTypeAccessor@@0PB_WB) 已经在 TableDoc.obj 中定义rn
帮忙看看 为什么出错
strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("data/data.mdb")rn'response.write strconnrn'response.endrn<em>id</em>=request("<em>id</em>")rnset conn = server.createobject("adodb.connection") rnconn.open strconnrnsql="delete wss where u<em>id</em> ='pgcat' "rn'response.write sqlrn'response.endrnconn.execute(sql)
看看怎么取这个ID
[code=VB]rn rn rn rn rn rn rn Borern rn 请选择rn rn rn rn rn stylern rn 请选择rn rn rn rn Strokern rn 请选择rn rn rn rn Shaftrn rn 请选择rn rn rn rn seriesrn rn 请选择rn rn rn rn 专业rn rn 请选择rn rn rn rn rn rnrn rn rnrnrn[/code]rnrnrn这是一个ASP+JS多级联动的下拉菜单...我想提交到RIGHT.asp取到所选专业的ID..用来读取ID对应的其它数据..请问如何取值?需要把JS代码贴出来吗
请各位看看是什么地方出错误了!我实在搞不懂了!
“/gbdt”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrnFROM 子句语法错误。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn[color=#FF0000]异常详细信息: System.Data.OleDb.OleDbException: FROM 子句语法错误。[/color]rnrn源错误: rnrnrn行 38: String selectsql = "select * from user where userId='" + txtUser.Text.Trim() + "'and userPwd='" + txtPwd.Text.Trim() + "'";rn行 39: OleDbCommand cmd = <em>new</em> OleDbCommand(selectsql, conn);rn[color=#FF0000]行 40: OleDbDataReader reader = cmd.ExecuteReader();[/color]行 41: if (reader.Read())rn行 42: rn rnrn源文件: e:\gbdt\admin_login.aspx.cs 行: 40 rnrn堆栈跟踪: rnrnrn[[color=#FF0000]OleDbException (0x80040e14): FROM 子句语法错误。][/color]rn System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +65rn System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +181rn System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +307rn System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +77rn System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +188rn System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +122rn System.Data.OleDb.OleDbCommand.ExecuteReader() +26rn admin_login.btnSubmit_Click(Object sender, EventArgs e) in e:\gbdt\admin_login.aspx.cs:40rn System.Web.UI.WebControls.Button.OnClick(EventArgs e) +96rn System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +116rn System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3837rnrn rn
请大家帮我看看这个错误为什么
代码如下::rnrst.Open "select * from ord", cnn, 1, 3rnrst.AddNewrnrst.Fields(1) = Text1.Textrnrst.Fields(2) = Text2.Textrnrst.Fields(3) = Text3.Textrnrst.Updatern错误如下 多步OLE DB 操作产生错误rn代码如下就可以::rnrst.Open "select * from ord", cnn, 1, 3rnrst.AddNewrnrst.Fields(1) = Text1.Textrnrst.Fields(2) = Text2.Textrnrst.Updatern这是怎么回事??? 我就是给text3.text付值写入库呀rn怎么可能有错误??
请帮忙看看这个触发器为什么不起作用
现在有两张数据库表,一张是FILE_SHARE主键是FS_ID,另一张表是FILE_MARK,通过外键FM_SHARE_ID与FILE_SHARE表的FS_ID相关。现在需要写一个触发器在删除FILE_SHARE表中记录后自动删除FILE_MARK表中FM_SHARE_ID字段与FILE_SHARE表中被删记录的FS_ID字段相同的记录。rn代码:rncreate or replace trigger TRGDELETE_FILESHARE_FILEMARKrnafter delete on FILE_SHARErnfor each rowrnbeginrn delete from FILE_MARK where FM_SHARE_ID = :OLD.FS_ID;rnend;rnrn编译正常,当FILE_SHARE表中的记录被删除后,FILE_MARK表的记录还在,请各位帮忙解决,谢谢!!rn分不多请谅解
请帮我看看这个BEAN为什么不行?
public vo<em>id</em> getCheckUser(HttpServletResponse res,String userName,String userPswd) throws IOExceptionrn rn res.setContentType("text/html");rn PrintWriter out=res.getWriter();rn tryrn rn ResultSet rs=RsList.getResultSet("select user_number,user_name,user_rightStr,user_level,user_department from "+Globals.getTableUserName()+" where user_login='"+userName+"' and user_pswd='"+userPswd+"' and theflag=1");rn if (rs.next())rn rn System.out.println("have record");rn rn elsern rn // System.out.println("no record");rn out.println(" ");rn out.println("sdfsd");rn rn rn catch (SQLException e)rn rn rn rnrnrn访问时在页面上不会执行JAVASCRIPT?rn有什么方法可以做到这一点rn谢谢
看看为什么这个文件删除不了?
string myclino = filename.substr(0, clipos - 1);rn strcpy_s(clino, myclino.size() + 1, myclino.c_str());rnrn string xlsfilename = filename + ".xls";rn string xlsfilefullpath = pathstr + xlsfilename;rnrn ifstream xlsfile(xlsfilefullpath);rn if (xlsfile.good())rn rn if (remove(xlsfilefullpath.c_str()) != 0)rn rn RARCloseArchive(rarFile);rn RARCloseArchive(rarFile2);rn const char * errcstyle = "删除相关解压缩后的EXCEL文件<em>出错</em>,程序终止";rn strcpy_s(errmsg, strlen(errcstyle) + 1, errcstyle);rn return -6;rn rnrnrnxlsfilefullpath 的值为 D:\\cpptest<em>new</em>\\unrartestapp\\Debug\\tempdata\\A012库存20171120.xls rn但删除不了,不知道什么原因rn
请高手看看这个更新为什么不行?
代码:rnPrivate Sub DataList1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles DataList1.UpdateCommandrn Dim strupdate As Stringrn Dim cmdupdate As SqlCommandrn Dim str<em>id</em> As Integerrn Dim mytitlebox As TextBoxrnrn str<em>id</em> = DataList1.DataKeys(e.Item.ItemIndex)rn mytitlebox = e.Item.FindControl("textbox1")rn strupdate = "update wjtz set title=@mytitle where <em>id</em>=@my<em>id</em>"rn cmdupdate = New SqlCommand(strupdate, conn)rn cmdupdate.Parameters.Add("@my<em>id</em>", str<em>id</em>)rn cmdupdate.Parameters.Add("@mytitle", mytitlebox)rnrnrn conn.Open()rn cmdupdate.ExecuteNonQuery()rn conn.Close()rn DataList1.EditItemIndex = -1rn DataList1.DataBind()rn datalist()rn End Subrnrnrn错误信息:rnrn“/test”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn索引(从零开始)必须大于或等于零,且小于参数列表的大小。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.FormatException: 索引(从零开始)必须大于或等于零,且小于参数列表的大小。rnrn源错误: rnrnrn行 52: cmdupdate = New SqlCommand(strupdate, conn)rn行 53: cmdupdate.Parameters.Add("@my<em>id</em>", str<em>id</em>)rn行 54: cmdupdate.Parameters.Add("@mytitle", mytitlebox)rn行 55: rn行 56: rn rnrn源文件: c:\inetpub\wwwroot\test\show.aspx.vb 行: 54 rnrn堆栈跟踪: rnrnrn[FormatException: 索引(从零开始)必须大于或等于零,且小于参数列表的大小。]rn System.Text.StringBuilder.AppendFormat(IFormatProv<em>id</em>er prov<em>id</em>er, String format, Object[] args) +1232rn System.String.Format(IFormatProv<em>id</em>er prov<em>id</em>er, String format, Object[] args) +65rn System.String.Format(String format, Object[] args) +10rn System.Data.Res.GetString(CultureInfo culture, String name, Object[] args)rn System.Data.Res.GetString(String name, Object[] args)rn System.Data.Common.ADP.UnknownDataType(Type dataType)rn System.Data.SqlClient.MetaType.GetMetaType(Object value)rn System.Data.SqlClient.SqlParameter.SetTypeInfoFromComType(Type type)rn System.Data.SqlClient.SqlParameter.set_Value(Object value)rn System.Data.SqlClient.SqlParameter..ctor(String parameterName, Object value)rn System.Data.SqlClient.SqlParameterCollection.Add(String parameterName, Object value)rn test.show1.DataList1_UpdateCommand(Object source, DataListCommandEventArgs e) in c:\inetpub\wwwroot\test\show.aspx.vb:54rn System.Web.UI.WebControls.DataList.OnUpdateCommand(DataListCommandEventArgs e)rn System.Web.UI.WebControls.DataList.OnBubbleEvent(Object source, EventArgs e)rn System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)rn System.Web.UI.WebControls.DataListItem.OnBubbleEvent(Object source, EventArgs e)rn System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)rn System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)rn System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)rn System.Web.UI.Page.ProcessRequestMain()rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET 框架版本:1.0.3705.288; ASP.NET 版本:1.0.3705.288
请大家帮忙看看这个为什么错?
eBody.Items.Clear;//eBody是一个combobox,rn Query.sql.Clear;rn Query.sql.Add('select * from template.db');rn Query.Open;rn while not Query.Eof do beginrn eBody.Items.Add(Query.FieldByName('检查部位').asstring);rn Query.Next;rn end;rn Query.close;rn<em>出错</em>:query field'检查部位'not found.rnrn在表里有这项的,<em>为什么</em>?rn
为什么我在这个地方调用模态对话框会出错?
// 游戏管理Dlg.cpp : 实现文件rn//rnrn#include "stdafx.h"rn#include "游戏管理.h"rn#include "游戏管理Dlg.h"rn#include "DiaPass.h"rn#include "DianKa.h"rn#include ".\游戏管理dlg.h"rnrn#ifdef _DEBUGrn#define <em>new</em> DEBUG_NEWrn#endifrnrnrn// CMyDlg 对话框rnrnrnrnCMyDlg::CMyDlg(CWnd* pParent /*=NULL*/)rn : CDialog(CMyDlg::IDD, pParent)rnrn m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);CMyDlg::OnModal();//这里能调用成功rnrnrnvo<em>id</em> CMyDlg::DoDataExchange(CDataExchange* pDX)rnrn CDialog::DoDataExchange(pDX);rn DDX_Control(pDX, IDC_LIST1, m_List);rn DDX_Control(pDX, IDC_LIST3, m_list3);rnrnrnBEGIN_MESSAGE_MAP(CMyDlg, CDialog)rn ON_WM_PAINT()rn ON_WM_QUERYDRAGICON()rn //AFX_MSG_MAPrnEND_MESSAGE_MAP()rnrnrn// CMyDlg 消息处理程序rnrnBOOL CMyDlg::OnInitDialog()rnrn CDialog::OnInitDialog();rn rn // 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动rn // 执行此操作rn SetIcon(m_hIcon, TRUE); // 设置大图标rn SetIcon(m_hIcon, FALSE); // 设置小图标rnrn // TODO: 在此添加额外的初始化代码rn m_Imagelist.Create(32,32,ILC_COLOR24|ILC_MASK,0,1);rnrn rn m_List.AddButton("用户资料查询修改",500);rn m_List.AddButton("加盟商点卡管理",501);rn m_List.AddButton("加盟商可收益财务报表",502);rn m_List.AddButton("加盟商抽水明细",503);rn m_List.AddButton("游戏记录查寻",504);rn rn //设置回调函数rn m_List.pItemDlbFun = OnItemDouble;rnrn //向指定按钮添加关联的视图项rn for (int i=0;iLoadIcon(IDI_ICON1+i));rn rn m_List.SetImageLists(&m_Imagelist);rn CString str;rn str = "用户资料";rn m_List.AddButtonItems(0,str);rn str = "用户状态";rn m_List.AddButtonItems(0,str);rn str = "点卡生成";rn m_List.AddButtonItems(1,str);rn str = "点卡管理";rn m_List.AddButtonItems(1,str);rn str = "充值记录";rn m_List.AddButtonItems(1,str);rn str = "财务报表";rn m_List.AddButtonItems(2,str);rn str = "抽水明细";rn m_List.AddButtonItems(3,str);rn str = "记录查询";rn m_List.AddButtonItems(4,str);rn rn CString Field[6]="ID","帐号","密码","面值","充值状态","充值日期"; //列表视的表头rn for(int j=0;jGetItemText(nIndex,0);rn if(str=="点卡生成")rn rn [color=#FF0000]CDianKa dlg;//////dlg.DoModal();/////[/color]rn [color=#FF0000]能调用成功,但在点击确定获是取消时<em>出错</em>![/color]rn rn rn rnrnrn[color=#FF0000]错误提示如下:rnDebug Assertion Failed!rnProgram:...ents and Settings\guanxin01\桌面\游戏管理\Debug\游戏管理.exernFile:wincore.cpprnLine:880rnrnFor information on how your proram can cause an assertionrnfailure,see the Visual C++ documentation on asserts.rnrn(Press Retry to debug the application)rnrnrn不过在Release版里可以,<em>为什么</em>?请哪位高手指点一下???rn[/color]
apache+tomcat出错,请看看
<em>为什么</em>我在winServer2000下不能总是安不起apache2.0.43呢?rn环境:rn win200server;iis已经卸了;我用的是apache_2.0.43-win32-x86-no_ssl.msirn安装时,全<em>使用</em>默认设置;完成后,rn运行http://localhostrn说是找不到网页;rn但在server里已经起动了appache服务了;搞不明白是<em>为什么</em>,请帮<em>看看</em>;rn以地,server里起动了,win的活动树,应该没有关系吧?
在编译时出错!!请看看!!
我在编译时<em>出错</em>,这是<em>为什么</em>呀?代码如下:rnimport java.awt.*;rnimport java.applet.*;rnimport java.awt.event.*;rnpublic class p75_ex3 extends AppletrnTextField text1;TextArea text2;rn public vo<em>id</em> init()rn text1=<em>new</em> TextField(12);rn text2=<em>new</em> TextArea(10,20);rn add(text1);add(text2);rn text1.addActionListener(this);rn text2.addTextListener(this);rn rn public vo<em>id</em> actionPerformed(ActionEvent e)rn if(e.getSource()==text1)rn text2.append("\n"+text1.getText());rn rn rn public vo<em>id</em> textValueChanged(TextEvent e)rn if(e.getSource()==text2)rn text1.setText("Hello,yichun university!");rn rn rn rn rnrnrn//错误提示为:rnp75_ex3.java:10: addActionListener(java.awt.event.ActionListener) in java.awt.TextField cannot be applied to (p75_ex3)rn text1.addActionListener(this);rn ^rnp75_ex3.java:11: addTextListener(java.awt.event.TextListener) in java.awt.TextComponent cannot be applied to (p75_ex3)rn text2.addTextListener(this);rn ^rn2 errorsrnExit code: 1rnThere were errorsrn大家帮忙看一下吧!!
C++使用new运算出错
[code=C/C++]rnfence->next = <em>new</em> Link(item);[/code]rn上述代码出现这样的错误:rnLinkedList.exe 中的 0x008b1cdd 处有未经处理的异常: 0xC0000005: 写入位置 0x00000004 时发生访问冲突rn求教。
这个BMP.FREE为什么出错
F10,F11为全局热键,要实现的功能为:按F10时创建bmp,bmp1,并响应执行F10热键代码。按F11时跳出循环体,rn并释放bmp,bmp1,但在运行时按了F11后提示错误,删除了bmp.free,bmp1.free后就不会提示错误了。rnrnvarrn From1:TForm1;rn bool:boolean;rnrnrnprocedure TForm1.hotkey(var msg:tmessage);rnvarrn bmp,bmp1:tbitmap;rn bool2,bool3:boolean;rnbeginrn if msg.LParamHi=vk_f11 //按F11停止rn then beginrn bool:=false;rn bmp.free;rn bmp1.free; //*****放在这里提示错误rn endrn else beginrn bmp:=tbitmap.Create;rn bmp1:=tbitmap.Create;rn bmp.LoadFromFile('c\1.bmp');rn bmp1.LoadFromFile('c:\2.bmp');rn bool:=true; //bmp的创建放在这里是避免每次按F10时重复bmp。creatern end;rn if msg.LParamHi=vk_f10 //按F10开始rn then beginrn while bool dorn beginrn while bool2 dorn beginrn //这里面要用到bmp和bmp1rn ...rn end;rn Application.ProcessMessages;rn if bool=false then break;rn while bool2 dorn beginrn //这里面也要用到bmp和bmp1rn ...rn end;rn Application.ProcessMessages;rn if bool=false then break;rn .....rn end;rn end;
这个存储过程为什么出错
CREATE PROCEDURE dbo.cx @a int output ASrn@a=(select count(*) from c200306)rngo
为什么这个代码出错
这是个UBB的代码,<em>为什么</em>出现500服务器错?而且没有任何提示rnrn'[url=http://]说明[/url]标签rnubbok=0rndo while ubbok=0rnubbok=1rnStarturl=Instr(1,ubbencode,"[url=")+5rnif Starturl>5 thenrnEndurl=Instr(Starturl,ubbencode,"]")rn if Endurl-Starturl>10 and Endurl-Starturl rn end ifrn ubbok=0rn ubbencode=m<em>id</em>(ubbencode,1,Starturl-1-5)&changemess&m<em>id</em>(ubbencode,EndStr+6)rn end ifrn end ifrn end ifrnend ifrnloop
这个程序为什么出错?
#include rn#include rnrnusing namespace std;rnrnclass Xrn int i;rn;rnrntemplate class Nodernpublic:rn auto_ptr pdata;rn;rnrnint main()rn vector< Node > f(10);//我想开始向量中有十个Node;rn return 0;rnrnrn我拿g++编译的时候出现了如下的错误:rn/usr/include/c++/3.2/bits/stl_construct.h: In function `vo<em>id</em>rn std::_Construct(_T1*, const _T2&) [with _T1 = Node, _T2 = Node]':rn/usr/include/c++/3.2/bits/stl_uninitialized.h:191: instantiated from `_ForwardIter std::__uninitialized_fill_n_aux(_ForwardIter, _Size,rnconst _Tp&, __false_type) [with _ForwardIter = Node*, _Size = unsigned int, _Tp = Node]'rn/usr/include/c++/3.2/bits/stl_uninitialized.h:216: instantiated from `_ForwardIter std::uninitialized_fill_n(_ForwardIter, _Size, constrn_Tp&) [with _ForwardIter = Node*, _Size = unsigned int, _Tp = Node]'rn/usr/include/c++/3.2/bits/stl_vector.h:342: instantiated from `std::vector::vector(unsigned int) [with _Tp = Node, _Alloc = std::allocator >]'rntest.cpp:17: instantiated from herern/usr/include/c++/3.2/bits/stl_construct.h:78: no matching function for call torn `Node::Node(const Node&)'rn/usr/include/c++/3.2/bits/stl_vector.h:342: cand<em>id</em>ates are: Node::Node()rntest.cpp:10: Node::Node(Node&)rnrn不知那位高手能帮我解决一下.
jsp的$obj.id写法失效?
jsp中显示对象属性:$obj.<em>id</em>,这么写原本是可以的,但今天突然不行了rn换成是可以的,不知怎么回事
动态链接库的使用出错,求助!请帮忙看看
网上有一篇《在Windows下编译sqlite3生成动态链接库并<em>使用</em>之 》技术文章rn我按照这篇文章从上到下操作完,生成了.LIB和.DLL文件,编写了里面的测试程序。rn下面是部分的程序:rnrn[img=http://img.my.csdn.net/uploads/201212/14/1355467853_2217.jpg][/img]rn在运行后了出现错误:rn[img=http://img.my.csdn.net/uploads/201212/14/1355467924_8348.jpg][/img]rn请问怎么解决或者能告诉我,怎么<em>使用</em>生成了.LIB和.DLL文件?
textcopy使用出错,请帮忙看看
所用存储过程:rnCREATE PROCEDURE sp_filecopy ( rn@srvname varchar (30), rn@login varchar (30), rn@password varchar (30), rn@dbname varchar (30), rn@tbname varchar (30), rn@colname varchar (30), rn@filename varchar (250), rn@whereclause varchar (120), rn@direction char(1))rnAS rnDECLARE @exec_str varchar (1000) rnSELECT @exec_str = rn'textcopy /S ' + @srvname + rn' /U ' + @login + rn' /P ' + @password + rn' /D ' + @dbname + rn' /T ' + @tbname + rn' /C ' + @colname + rn' /W "' + @whereclause + rn'" /F ' + @filename + rn' /' + @direction rnEXEC master..xp_cmdshell @exec_strrnrn<em>使用</em>语句1:rnexec sp_filecopy '.','sa','','dpad','tAU_AutoUpdate_detail','FileByte',rn'd:\项目\slautoupdate\AutoUpdateService\Update\Lanyou.Business.BizEnt_S.dll',rn'where au<em>id</em>=11 and FileName=''Lanyou.Business.BizEnt_S.dll''','I' rn提示错误:rnSQL Server 'AR' Message 3621: 语句终止。 (Concerning line 1)rnrn<em>使用</em>语句2:rnexec sp_filecopy '.','sa','','dpad','tAU_AutoUpdate_detail','FileByte',rn'd:\项目\slautoupdate\AutoUpdateService\Update\MsmqRecvServ.exe',rn'where au<em>id</em>=11 and FileName=''MsmqRecvServ.exe''','I' rn提示成功:rnData copied into SQL Server image column from file 'd:\项目\slautoupdate\AutoUpdateService\Update\MsmqRecvServ.exe'.rnrnrn我的文件都是实实在在存在的,我测试了很多个,有些可以,可有些就不行。rn不知道原因。rn
为什么这个语句总是出错Global DSound As New DirectSoundOBJ
DirectSoundrnrn在遊戲中<em>使用</em>到DirectSound的機會相當多,而且很多時候都需要用到多個音效檔同時撥放,傳統的MCI就沒有辦法做到混音的效果,所以用DirectSound來處理這方面的工作.我把DirectSound整理成VB的物件類別模組,<em>使用</em>上更加方便容易,更易於管理多個音效,下面是程式碼以及說明.rnrnDirectSoundOBJ.zip rnrn啟動DirectSound物件 rn rnrn'首先宣告DirectSoundOBJ的物件rn'Me.hWnd 是Form物件的 hWnd,這兩行已經啟動完成了rnrnGlobal DSound As New DirectSoundOBJrnrnrnDSound.Init Me.hWndrnrnrn rnrn加入音效檔案 rn rnrn'第一個字串是識別碼,供以後撥放識別用rn'第二個是我們要加入的音效檔案rn'下面程式碼表示加入二個音效,第一個載到"Back"聲道,第二個載到"Game"聲道rnrnDSound.Add "Back", "BG.wav"rnDSound.Add "Game", "Game.wav"rnrnrn rnrn撥放,停止音效 rn rnrn'下面程式碼代表: 停止"Game"聲道,撥放"Back"聲道rn'Play 後面的 True表示要循環撥放rnrnDSound("Game").StopWavrnDSound("Back").Play Truernrnrn'下面程式碼表示:兩個聲道一起撥放,"Game"聲道指撥放一次,"Back"聲道循環撥放rnrnDSound("Game").Play FalsernDSound("Back").Play Truernrnrn移除聲道 rn rnrn'移除"Game"聲道rnDSound.Remove "Game"rnrn'移除所有聲道rnDSound.RemoveAllrnrn rnrn<em>使用</em>上就是如此簡單,裡面還有許多進階功能,絕對可以應付你音效上面的需求rnrn
为什么这个存储过程出错
<em>为什么</em><em>这个</em>存储过程<em>出错</em>?小弟刚接触,期待指教。rn存储过程:rnCREATE PROCEDURE sp_test rnrn@t1 varchar(200),rn@t2 varchar(200),rn@t3 varchar(200),rn@t4 varchar(200)rnrnASrninsert into test(t1, t2, t3, t4) values(@t1, @t2, @t3, @t4)rnGOrnrnASP:rn<> "" thenrn set cn = server.CreateObject("adodb.connection")rn cn.Open Application("SZCL")rn set cm = server.CreateObject("adodb.command")rn cm.ActiveConnection = cnrn cm.CommandText = "sp_test"rn cm.CommandType = 4rn cm.Parameters.Append cm.CreateParameter("@t1",adInteger,adParamInput,,t1)rn cm.Parameters.Append cm.CreateParameter("@t2",adInteger,adParamInput,,t2)rn cm.Parameters.Append cm.CreateParameter("@t3",adInteger,adParamInput,,t3)rn cm.Parameters.Append cm.CreateParameter("@t4",adInteger,adParamInput,,t4)rn cm.Executern set cm = nothingrn cn.Close()rn set cn = nothingrnend ifrnrn%>rnrnrn rnrnrn rnrnrnrnrnrnrnrnrnrnrn发生错误:rn错误类型:rnADODB.Command (0x800A0BB9)rn/SZCL/test/Proceduretest.asp, 第 17 行rnrnSQL SERVER数据库rn表test,有字段t1,t2,t3,t4都为字符串型
这个程序为什么出错
实在不知道<em>为什么</em>了rn#include rnusing namespace std;rnrnrnclass Timernrnpublic:rn Time():hour(0),minute(0),sec(0)rn vo<em>id</em> set_time(vo<em>id</em>)rn rn cin>>hour;rn cin>>minute;rn cin>>sec;rn rn vo<em>id</em> show_time(vo<em>id</em>)rn rn cout<
提问,这个为什么出错
dim mySqlConnection as SqlConnectionrnmySqlConnection = <em>new</em> SqlConnection("...")rnrn可是系统居然报mySqlConnenction需要声明.rn难道不能先声明一个变量再实例化吗?
这个ORACLE存储过程为什么出错
create or replace procedure stp_bill(统计项目 in varchar2, rnTJFS in varchar2,strwhere in varchar2,值 out number ) isrn--统计方式 TJFSrn v_FS VARCHAR2;rn v_sql varchar2;rn v_Ym number;rn v_result number;rnbeginrn if TJFS='合计数' thenrn V_FS:='sum(';rn else if TJFS='平均数' then rn V_FS:='avg(';rn else if TJFS='最大数' then rn V_FS:='max(';rn else if TJFS='最小数' then rn V_FS:='min(';rn else if TJFS='记录数' then rn V_FS:='count(';rn end if;rn if length(strwhere)=0 thenrn v_sql:='';rn else rn v_sql:=' and';rn end if;rn select 当前年月 into v_ym from ACC_base;rn strwhere:='declare cursor a is select ' || V_FS || 统计项目||') from qry_Bills where '|| strwhere || v_sql || ' substr(年月,2,-1)=v_ym ';rn dbms_sql (strwhere);rnopen a;rnfetch a into v_result;rnclose a;rnif v_result is null then rnv_result:=0;rnend if;rn 值:=v_result;rn rnend stp_bill;rn请大家帮忙<em>看看</em>错在那里?
这个为什么运行时出错
int** int_matrix = static_cast< int** >( static_cast< vo<em>id</em>*>( <em>new</em> int[max_X*max_Y]));rn cout<
这个程序为什么出错???
import java.awt.*;rnimport javax.swing.*;rnimport java.awt.event.*;rnrnpublic class PaintTest extends JFrame rn private int pointCount = 0;rn private Point points[] = <em>new</em> Point[ 1000 ]; rn private JList colorList;rn private Container container;rn int currentColor ;rn private final String colorNames[] = "Black", "Blue", "Cyan",rn "Dark Gray", "Gray", "Green", "Light Gray", "Magenta",rn "Orange", "Pink", "Red", "White", "Yellow" ;rn private final Color colors[] = Color.black, Color.blue, Color.cyan,rn Color.darkGray, Color.gray, Color.green, Color.lightGray, Color.magenta, rn Color.orange, Color.pink, Color.red, Color.white, Color.yellow ;rn public PaintTest()rn rn super( "My simple PaintTest program" );rn container = getContentPane();rn container.setLayout( <em>new</em> FlowLayout() );rn colorList = <em>new</em> JList( colorNames );rn colorList.setVisibleRowCount( 5 );rn colorList.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );rn container.add( <em>new</em> JScrollPane( colorList ) );rn colorList.addListSelectionListener( <em>new</em> ListSelectionListener() rn public vo<em>id</em> valueChanged( ListSelectionEvent event )rn rn //currentColor=colors[colorList.getSelectedIndex()];rn rn rn );rn addMouseMotionListener( <em>new</em> MouseMotionAdapter() rn rn public vo<em>id</em> mouseDragged( MouseEvent event )rn if ( pointCount < points.length ) rn points[ pointCount ] = event.getPoint();rn ++pointCount;rn repaint(); rn ); rn setSize( 300, 150 );rn setVisible( true ); rn rn public vo<em>id</em> paint( Graphics g )rn super.paint( g ); rn g.setColor(colors[1]);rn for ( int i = 0; i < points.length && points[ i ] != null; i++ )rn g.fillOval( points[ i ].x, points[ i ].y, 4, 4 );rn rn rn public static vo<em>id</em> main( String args[] )rn rn PaintTest application = <em>new</em> PaintTest();rn application.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);rn application.addWindowListener( <em>new</em> WindowAdapter()rn public vo<em>id</em> windowClosing(WindowEvent e)rn System.exit(0); rn );rn rn rn
这个为什么出错?
const int ival = 1024;rnint *&pi_ref = &ival;
这个语句为什么出错.
q_mzgl.Close;rn _mzgl.sql.clear;rnq_mzgl.sql.add('set generator gen_cfbh to :bh');rnq_mzgl.parambyname('bh').asstring:=fieldbyname('bh').asstring;rnq_mzgl.ExecSQL;rn这条语句<em>出错</em>.rn
这个代码为什么出错
是哪里错了?rn rn一执行就网页有误?
这个为什么出错
update (select top 20 from t order by <em>new</em><em>id</em>()) set sdate=getdate()rnrn<em>这个</em>是随机取20个记录更新时间rn但<em>出错</em>rn '(' 附近有语法错误。rnrn<em>为什么</em>呢
来看这个为什么出错!!!
我的代码:( My Code) rnrnrn rn rn rn rn 浏览(Preview) rn rn rn 上传(UpLoad) rn rnrnrn这样提交会<em>出错</em> 错误为拒绝访问rn帮忙<em>看看</em>!!!!
郁闷 这个为什么出错
x_seg segmentrnx dw 0ffhrnx_seg endsrny_seg segmentrny dw 123hrny_seg endsrnz_seg segmentrnz dw 0fe4hrnz_seg endsrncode segmentrnassume ds:x_seg,es:y_seg,ss:z_segrnmain proc farrnstart:rnpush dsrnsub ax,axrnpush axrnrnmov ax,x_segrnmov ds,axrnmov ax,y_segrnmov es,axrnmov ax,z_segrnmov ss,axrnrnmov ax,x_segrnadd ax,y_segrnadd ax,z_segrnmov x_seg,axrnretrnmain endprncode endsrnend start
再请帮忙看看这个地方为什么无法进行读取
set rsVoteItem=Server.CreateObject("AdoDB.RecordSet")rnset rsVoteItem.ActiveConnection=connrnset rsVoteItem.CursorType=3rnsqlItem="SELECT * FROM [VoteItem] WHERE [VoteID]="&vVoteIDrnrsVoteItem=conn.Execute (sqlItem)rnresponse.write sqlItemrndim RCItemrnRCItem=rsVoteItem.RecordCountrnresponse.write "RCItem="&RCItemrnrn运行后,显示rnSELECT * FROM [VoteItem] WHERE [VoteID]=3RCItem= rnrn请大家<em>看看</em><em>为什么</em><em>这个</em>sql语句没有正确执行啊?rn表的字段名我已经检查了无数遍 了!
ewebeditor7.0下载
带后台,水印图片功能有欠缺,其余大至可用。请勿用于商业用途。 相关下载链接:[url=//download.csdn.net/download/wlk2008888/3022166?utm_source=bbsseo]//download.csdn.net/download/wlk2008888/3022166?utm_source=bbsseo[/url]
平面域着色下载
平面上有一点P,它是n个域D1、D2、……,Dn的共同交点, 现取k种颜色对这n个域进行着色,要求相邻两个域着的颜色不同,求着色方案数。 这里,2<=n<=10,1<=k<=9。 相关下载链接:[url=//download.csdn.net/download/willk1991/4803694?utm_source=bbsseo]//download.csdn.net/download/willk1991/4803694?utm_source=bbsseo[/url]
Android经典源码全集下载
Android 源代码 相关下载链接:[url=//download.csdn.net/download/wsad227/5486351?utm_source=bbsseo]//download.csdn.net/download/wsad227/5486351?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的