帮我看看这个Python哪里出错? [问题点数:100分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs4
本版专家分:1612
Bbs4
本版专家分:1612
Bbs1
本版专家分:65
其他相关推荐
数字计时钟程序,数字计时钟程序
大家帮我看看此程序问题在哪里,总是出错.大家帮我看看此程序问题在哪里,总是出错
文件内容
帮我看看哪里错了,为什么不能连接数据库呢?一运行就出错
【软考】——磁盘与流水线
哈~~哈~~哈!一下内容有什么不对的,希望大家多多指教!   磁盘???——》外部存储器; 老式磁盘???——》 解析???——》 一圈圈灰色同心圆为一条条磁道,从圆心向外画直线,可以将磁道划分为若干个弧段,每个磁道上一个弧段被称之为一个扇区(图践绿色部分);   扇区???——》最小组成单元,且512字节; 盘块???——》通常认为盘块和扇...
帮我看看出错哪里
<%@page contentType="text/html;charset=GB2312"%>rnrnrn 使用JavaBeanrnrnrnrnrnrn rn rn 使用JavaBeanrnrn rnrnrnrn rn Message: rnrnrn rnrnrnrn/*以上是BeanTest.jsp*/rnpackage ch7;rnpublic class SimpleBean rn private String message = "no message ";rn public String getMessage() rn return(message);rn rn public void setMessage(String message) rn this.message = message;rn rnrn/*SimpleBean.java放在BeanTest.jsp同目录下ch7文件夹里,为什么出现如下的错误呢?*/rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: ch7.SimpleBeanrn at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183)rn at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:691)rn at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)rn at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)rn at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)rn at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)rn at org.apache.jasper.compiler.Generator.generate(Generator.java:1871)rn ......
帮我看看这个出错哪里,谢谢!!
rn rnrnrn 身份确认rnrnrn<% if checkps() thenrn response.redirect "http://localhost/wrong.asp"rn%>rn<%elsern response.write"对不起,你的用户名或密码有误,请重试!"rn%>rn<%end if%>rnrnrnrnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrnActive Server Pages 错误 'ASP 0128' rnrn缺少 File 或 Virtual 属性 rnrn/TMPaygmbij413.asp,行1 rnrn包含文件名必须用 File 或 Virtual 属性来指定。rn
串口通讯
帮我看看错在哪里
麻烦帮我看看哪里出错
下面是一个浏览器,实现到HTTP://onlinefamily.norton.com 那里自动填写不准浏览的网站,请帮我看看哪里错了,按了BUTTON没反应,我是VS 2005rnrnusing System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Text;rnusing System.Windows.Forms;rnrnnamespace autofillformrnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn webBrowser1.Navigate("http://onlinefamily.norton.com");rn rnrn private void button1_Click(object sender, EventArgs e)rn rn HtmlElement element = webBrowser1.Document.GetElementById("newBlockUrl");rn element.SetAttribute("value", "WWW.163.COM");rn webBrowser1.Document.All["blockListBtn"].InvokeMember("Click");rnrnrnrn rn rnrnrnhttp://onlinefamily.norton.com 设置的屏蔽网站的HTMLrn 输入网站rn rnrnrnrnrn
帮我看看哪里出错
刚学习asp.net,模仿书上的例子,可演示总出错,请大家告诉我是为什么啊rn rnrn出错提示如下:rnServer Error in '/test' Application.rn--------------------------------------------------------------------------------rnrnCompilation Error rnDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. rnrnCompiler Error Message: BC30277: Type character '&' does not match declared data type 'Byte'.rnrnSource Error:rnrn rnrnLine 4: select case aarnLine 5: case 1rnLine 6: response.write (aa&"的英文为"&"ONE")rnLine 7: case 2rnLine 8: response.write (aa&"的英文为"&"two")rn rn
帮我看看,到底在哪里出错
procedure TForm1.Button1Click(Sender: TObject);rnvarrn i,iBegin:Integer;rn StrCut,StrTemp:String;rn ArrayStr: array [1..30] of String;rnbeginrn StrTemp:=StringReplace(Edit1.Text,',',',\',[rfReplaceAll]);//逗号占两个字节rn StrTemp:=StringReplace(StrTemp,',',',\',[rfReplaceAll]);//逗号占一个字节rn Edit2.Text:=StrTemp;rnrn StrCut:=trim(Edit2.Text);rn i:=1;rn iBegin:=Pos('\',StrCut);rn while iBegin<>0 dorn beginrn ArrayStr[i]:=LeftStr(StrCut,iBegin);rn StrCut:=RightStr(StrCut,Length(StrCut)-iBegin);rn iBegin:=Pos('\',StrCut);rn Inc(i);rn end;rn Edit3.Text:=ArrayStr[1];rn Edit4.Text:=ArrayStr[2];rnrnend;rn
Python未来的发展前景
作者:li alex 链接:https://www.zhihu.com/question/22112542/answer/166053516 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。   看了所有的答案,我觉得的没有一答案是真正的站在10年后角度来讨论这个问题的,讨论的其实都是现在python的现状或问题,我觉得讨论这种问题时,我们一方面要理性分析,另一方...
蓝桥杯之寒假作业
寒假作业: 现在小学的数学题目也不是那么好玩的。 看看这个寒假作业:    □ + □ = □    □ - □ = □    □ × □ = □    □ ÷ □ = □     每个方块代表1~13中的某一个数字,但不能重复。 比如:  6  + 7 = 13  9  - 8 = 1  3  * 4 = 12  10 / 2 = 5 以及:  7 
寒假作业 dfs
本文参考博客http://m.blog.csdn.net/article/details?id=51039203 现在小学的数学题目也不是那么好玩的。  看看这个寒假作业:  □ + □ = □  □ - □ = □  □ × □ = □  □ ÷ □ = □  (如果显示不出来,可以参见【图1.jpg】)  每个方块代表1~13中的某一个数字,但不能重复。  比如: 
大家帮我看看这个是Delphi 的什么版本的源码
大家帮我看看这个是Delphi 的什么版本的源码
帮我看看这个程序,到底哪里出错呀?
# includern# includern# includernrnvoid main(void)rnrn /*子程序义部分*/rn float getData(void);rn void printResult(float num1,float num2,float result,int option); rn int getOption(void);rn float calc(int option,float num1,float num2);rnrn /*局部变量定义部分*/rn int option;rn float num1;rn float num2;rn float result;rnrn while((option=getOption())!=5)rn rn num1=getData();rn num2=getData();rn result=calc(option,num1,num2);rn printResult(num1,num2,result,option);rnrn rn rn cout<<"\n谢谢使用这个程序"<>option;rn return option;rnrn/************************getData*************/rnfloat getData(void)rnrn float data;rnrn cout<<"\n输入一个数值:";rn cin>>data;rn return data;rnrn/***************calc***************/rnfloat calc(int option,float num1,float num2)rnrn float add(float num1,float num2);rn float sub(float num1,float num2);rn float mul(float num1,float num2);rn float dvd(float num1,float num2);rnrn float result;rnrn switch (option)rn case 1:result=add(num1,num2);rn break;rn case 2:result=sub(num1,num2);rn break;rn case 3:result=mul(num1,num2);rn break;rn case 4:if(num2==0.0)rn cout<<"\n\a\a错误计算:";rn cout<<"分母为零***"<
大家帮我看看这个判断语句哪里出错
大家帮我看看这个判断语句哪里出错呢rn<%if rs("fjm") ="1" then Response.Write "是"rnelsernresponse.write "否"rnend if%>rn这是源码,但运行时总是提示else错误,到底哪里出错呢?我看来看去就是看不出,if then else end if,不是对的吗?
诸位帮我看看这个调用API的程序哪里出错
VC编的API函数:rnint Connect(char *hostip,unsigned short Uport)rnVB中我作如下处理:rnPublic Declare Function Connect Lib "d:\a\b\smm.dll" (HostIP As Byte, ByVal Port As Integer) As Longrnrnform中:rn Dim str1 As Stringrn Dim psHostip(25) As Bytern Dim psPort As Integerrn str1 = "192.168.1.99"rn Port = 6300rn CopyMemory pszHostIP(0), ByVal (StrPtr(str1)), 25rn rn PROussdconnect = Connect(pszHostIP(0), Port)rnrn 执行后,出现:文件未找到:"d:\a\b\smm.dll"的错误,不知道是为什么?rn rn
大家帮我看看这个程序哪里出错啦?
这是一个模仿时间片轮转算法的程序!已经能通过编译了!但运行时,只能加两个进程,加到三个,就马上出错!不知是为什么啊!请高手帮我看看吧!(这个程序不长,应该不会花您太多时间的!)我是个初学者,写得不好,请不要嘲笑啊!多谢!rn//时间片轮转调度算法rn#include rn//定义进程类rnclass Process rn friend class Queue;rnpublic:rn Process(int pn=0,int pl=1,Process * l=NULL):process_number(pn),process_length(pl),link(l)ran_length=0;rn void runProcess(const int &);rn int getRemain();rnprivate:rn int process_length,ran_length,process_number;rn Process * link;rn;rnrnint Process::getRemain()return process_length-ran_length;rnrnvoid Process::runProcess(const int &tl)rn if(tllink=new Process(pn1,pl1,NULL);rn rear=rear->link;rn rnrnrnvoid Queue::deQueue()rn front=front->link;rnrnrnvoid Queue::getProcess(const int &tl)rn front->runProcess(tl);rnrnrnvoid Queue::adjustQueue()rn if(front->link!=NULL)rn Process * p=front;rn front=front->link;rn rear->link=p;rn rear=p;rn rear->link=NULL;rn delete p;rn rnrnrnvoid main ()rn Queue Q;rn int timelength=0,processnumber[10]=0,processlength[10]=0;rn cout<<"Input the length of time : \n";rn cin>>timelength;rn cout<<"Input the process number and the length of process(end with -1)!\n";rn for(int i=0;i<=9;i++)rn cout<<"Enter the process number:\n";rn cin>>processnumber[i];rn if(processnumber[i]==-1)rn break;rn cout<<"Enter the length of process:\n";rn cin>>processlength[i];rn Q.enQueue(processnumber[i],processlength[i]);rn rn cout<<"The processes are to be ran!\n";rn while(!Q.isEmpty())rn Q.getProcess(timelength);rn if(Q.front->getRemain()<=0)rn Q.deQueue();rn else Q.adjustQueue();rn rn
麻烦大家帮我看看这个sql语句出错哪里
select emp.ename, emp.sal ,dept.deptno from emp,dept where emp.deptno=dept.deptnornrnrnrn[img=http://img.bbs.csdn.net/upload/201309/12/1378992256_443584.png][/img]rn这是上面那句的结果。。然后我就是想让他们按deptno分组显示出来,所以改成这个语句rn[color=#FF0000]select emp.ename, emp.sal ,dept.deptno from emp,dept where emp.deptno=dept.deptno group by dept.deptno[/color][color=#000000][/color]可是这个时候就出错了。说不是group by 表达式。。rn请问大家,到底错在哪里啊?[img=http://img.bbs.csdn.net/upload/201309/12/1378992436_778774.png][/img]
帮我看看这个验证注册页脚本哪里出错
没有反应!!!!!rn
2016年蓝桥杯A组 第六题 寒假作业
今年的题不知为什么,第三道是考的dfs,这第六道同样是考的dfs,看来深度优先遍历是需要好好学学的! 寒假作业现在小学的数学题目也不是那么好玩的。 看看这个寒假作业:□ + □ = □ □ - □ = □ □ × □ = □ □ ÷ □ = □(如果显示不出来,可以参见【图1.jpg】)每个方块代表1~13中的某一个数字,但不能重复。 比如: 6 + 7 = 13
大家帮帮忙 帮我看看哪里出错
#includernint main()rnrn int i,j,k,n;rn rn while(scanf("%d",&n)!=EOF)rn for(i=0;i<=n-1;i++)rn rn for(j=0;j<=n-2-i;j++)rn printf(" ");rn for(k=0;k<=2*i;k++)rn printf("*");rn printf("\n");rn rn for(i=0;i<=n-1;i++)rn rn for(j=0;j<=i;j++)rn printf(" ");rn for(k=0;k<=2*n-2*i-4;k++)rn printf("*");rn printf("\n");rn rn rn return 0;rnrnrnrnrnrn结果总是Presentation Error
大家帮我看看哪里出错误了?
#include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; #define MAXSIZE 50 typedef char DataType; typedef struct{ DataType data[MAXSIZE]; int top; }Stack,*PStack; int Init_Stack(PStack S) { S=(PStack)mall...
帮我看看 下面的语句哪里出错
rnhttp://topic.csdn.net/u/20080102/21/41cd9c17-4528-4cff-9203-5eeaa481149a.html 你好 这是更新数据库内容的方法rn下面是我想从jydxx和hwxx检索符合条件的数据插入一张表fhqd中rn这是利用hwxx表中的hw_id传值 " > rn这是处理页面rnfor i = 1 to request.form("chk_id").countrn rnhw_id =replace(request.form("chk_id").item(i),", ","") '去掉空格rnrnrnsql="insert into fhqd(fhrxm,fhrdh,shrxm,shrdh,zdz,sxhh,jydbh,hwmc,chang,kuang,gao,jianshu,dtj,dzl,ztj,zzl,danjia,cyf,bxf,zyf,hdfk,yijje,sqje,dzf,dshk,jjf,qdlx,thfs,beizu) select jydxx.fhrxm,jydxx.fhrdh,jydxx.shrxm,jydxx.shrdh,jydxx.zdz,jydxx.sxhh,hwxx.jydbh,hwxx.hwmc,hwxx.chang,hwxx.kuang,hwxx.gao,hwxx.jianshu,hwxx.dtj,hwxx.dzl,hwxx.ztj,hwxx.zzl,hwxx.danjia,hwxx.cyf,hwxx.bxf,hwxx.zyf,jydxx.hdfk,jydxx.yijje,jydxx.sqje,jydxx.dzf,jydxx.dshk,jydxx.jjf,jydxx.qdlx,jydxx.thfs,jydxx.beizu from hwxx,jydxx where hwxx.hw_id = '"&hw_id&"' and hwxx.jydbh=jydxx.jydbh " rnrnconn.execute(sql) rnrnnextrnrnrn怎么不行 哪里出错???请指教??rn
哪位大哥帮我看看哪里出错了呀!~~~~
<% rn dim strconn rn dim conn rn strconn="DBQ="+server.mappath("msbbs.mdb")+";DefaultDir=;DRIVER=Microsoft Access Driver (*.mdb);" rnset conn=server.createobject("adodb.connection") rnconn.open strconn rnset rs=server.createobject("adodb.recordset") rnsql="select * from user where userni="&request("name")&"" rnset rs=conn.execute(sql) rn%> rn rn出错信息是: rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rn rn缺少 'End' rn rn/iisHelp/common/500-100.asp,行242 rn rnMicrosoft OLE DB Provider for ODBC Drivers 错误 '80004005' rn rn[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x640 Thread 0x748 DBC 0x258372c Jet'。 rn rn/asp/basedata/select.asp,行6
帮我看看这段递归调用代码出错哪里
想显示一个树形结构菜单。生成类似如下的代码rn rn Item 1rn Folder 0rn rn Sub Item 1.1rn Sub Item 1.2rn Sub Item 1.3rn Sub Item 1.4rn Sub Item 1.2rn Sub Item 1.3rn Sub Item 1.4rn rnrnrnrn表结构rn表名:XiTongGongNeng rn字段:rnBianMa:功能编码rnFuBianMa:父功能编码 rnLianJieDiZhi: 连接地址rnMingCheng: 功能名称rnrn[code=VBScript]rn<%rnFunction getMenu(pFunction)rn Dim pfrn pf = "" & pFunctionrn Dim RsGongNengrn Set RsGongNeng = Server.CreateObject("ADODB.Recordset")rn RsGongNeng.ActiveConnection = MM_DbMain_STRINGrn RsGongNeng.Source = "SELECT * FROM XiTongGongNeng WHERE FuBianMa = '" & pf & "' AND IsShow = '1' ORDER BY PaiXu"rn RsGongNeng.CursorType = 1rn RsGongNeng.CursorLocation = 2rn RsGongNeng.LockType = 1rn RsGongNeng.Open()rnrn Dim MenuStrrn MenuStr = ""rn If(RsGongNeng.RecordCount > 0) Then MenuStr = MenuStr + " "rn rn While ((Not RsGongNeng.Bof) AND (NOT RsGongNeng.EOF))rn MenuStr = MenuStr & " " & RsGongNeng.Fields.Item("MingCheng").Value & ""rn rn '此处递归调用rn MenuStr = MenuStr & getMenu(RsGongNeng.Fields.Item("FuBianMa").Value & "")rn RsGongNeng.MoveNext()rn Wendrn rn If(RsGongNeng.RecordCount > 0) Then MenuStr = MenuStr + ""rn getMenu = MenuStrrnEnd Functionrn%>rnrn<%rn response.Write(getMenu("0"))rn%>rn[/code]
各位大家帮我看看哪里出错
帮我看看G1_onclick()里的语法有否错误。rn主要是判断ordergetnumX的值是否数字的问题。目的是判断ordergetnumX(ordergetnum1,ordergetnum2,ordergetnum3,……)的值不是数字时,javascript将提示出错,return false。但是现在好象没有判断就直接执行了。。。rn里头的chknbr()与fucCheckNUM()是判断数值的自定义函数,是绝对正确的。。。我放在js/JSCheckFun.asp文件里引用了。rn____________________________________________rnvar clickcounter1=0;rnfunction G1_onclick() rnclickcounter1=clickcounter1+1rnif (clickcounter1==1) rnif (document.Form2.getConsignDate.value=="")rn alert("到货日期还没输入!");rn clickcounter1=0;rn return falsernrnvar j,jstr;rnfor(j=0;j
请大虾帮我看看,不知道哪里出错
class Curve : public TLabelrnrnrn public:rn int x,y,w,h; rn TColor c, cb; rn int b; rn int dt; rn int t; rn int data_max; rn int data0, data1; rnrn Curve(int x0,int y0,int w0,int h0,QColor c0,QColor cb0,int b0,int dt0,int data_max0)rn rn x=x0; y=y0; w=w0; h=h0;rn this->Left=x;rn this->Top=y;rn this->Width=w;rn this->Height=h;rn c=c0;rn cb=cb0;rnrn b=b0;rnrn data0=data1=t=0;rn dt=dt0;rn data_max=data_max0;rn rn rn;rnrn错误提示:Type name expected;rn我想在窗体中使用它:Curve *Label1;
有关XMLHttp,帮我看看代码出错哪里
2.asp的主要代码rntest是一个ocx,Test1_ButtonClick(index)是它在ie容器的事件,主要实现的功能是将控件里tag属性打包成xml形式传到服务器,这段代码没错rnsub Test1_ButtonClick(index)rn if test1.tag ="tag1" thenrn Set pi = mydata.createProcessingInstruction rn ("xml", "version='1.0' encoding='UTF-8'")rn mydata.insertBefore pi, mydata.firstChildrn mydata.documentElement.getElementsByTagName("Tag").item(0).text = rn test1.tagrn set xmlhttp = CreateObject("Msxml2.XMLHTTP")rn xmlhttp.Open "GET", "http://yanhuahui/2/4.asp", falsern mydata.async=falsern xmlhttp.send mydata.XMLDocumentrn test1.text = xmlhttp.responseTextrn end ifrnend subrnrnrnrn rnrnrn4.asprnApplication("xdoc")在global.asa中创建的,主要功能就是:rn从客户端得到的xml,解析出所要查询的tag,然后从Application("xdoc")得到该tag的值,在打包成result,传回客户端rn<%rn set doc = Server.CreateObject("Msxml2.DOMDocument")rn doc.async=falsern doc.load Requestrn session("tag") = doc.getElementsByTagName("Tag").item(0).text**出错***rn session("tag1")= Application("xdoc").getElementsByTagName(session rn ("tag")).item(0).textrn set result = Server.CreateObject("Msxml2.DOMDocument")rn Response.ContentType = "text/xml"rn result.loadXML "" + session("tag1") +" "rn set pi = result.createProcessingInstruction ("xml", "version='1.0'")rn result.insertBefore pi, result.firstChildrn result.save Responsern%>rn帮我看看是什么错误?谢谢了,我有什么说不清楚的,希望大家提出来...在线等待.
帮我看看”读取模块“出错哪里
调用 读取 函数的时候,直接就程序退出了。rn我也不知道怎么办。有劳各位了!rn#includern#includern#includern#define LEN sizeof(human)rntypedef struct human rn char name[100];rn char bumen[100];rn char jiguan[100];rn char birthday[100];rn char xueli[100];rn char zhicheng[100];rn int gongzi;rn char jiangcheng[100];rn struct human *next;rnhuman;rnhuman *creat() rn human *head;rn static human dalao = rn "武晓",rn "本公司",rn "新疆",rn "1987.1.1",rn "本科在读",rn "大老板!",rn 0,rn "小学语文考试第一,奖励全村最好的葡萄干",rn NULLrn ;rn head = &dalao;rn return (head);rnrnvoid print(human *p) rn printf("\n姓名:%s", p->name);rn printf("\n部门:%s", p->bumen);rn printf("\n籍贯:%s", p->jiguan);rn printf("\n出生年月日:%s", p->birthday);rn printf("\n学历/学位:%s", p->xueli);rn printf("\n职务/职称:%s", p->zhicheng);rn printf("\n工资:%d", p->gongzi);rn printf("\n奖惩记录:%s\n", p->jiangcheng);rnrnhuman *scan() rn human *p;rn p = (human *)malloc(LEN);rn printf("请依次输入 姓名、部门、籍贯、出生年月(1987.1.1)、学历/学位、职务/职称、工资(整数)、奖惩记录。");rn printf("\n每个输完请按回车,以输入下一个:\n");rn scanf("%s%s%s%s%s%s%d%s", p->name, p->bumen, p->jiguan, p->birthday, p->xueli, p->zhicheng, &p->gongzi, p->jiangcheng);rn p->next = NULL;rn return (p);rn //输入一个点rnhuman *addone(human *head) rn human *p;rn p = scan();rn p->next = head->next;rn head->next = p;rn return head;rnrnhuman * guanliyuan(human *head) rn while (1) rn printf("尊敬的管理员,您好\n");rn printf("1.增加一个人员\n");rn printf("4.返回上一级\n");rn int a;rn scanf("%d", &a);rn switch (a) rn case 1:head = addone(head); printf("输入成功!\n按回车键以继续..."); break;rn case 4:return head;rn rn getchar();rn getchar();rn system("CLS");rn rnrnvoid baocun(human *head);rnvoid denglu(human *head) rn while (1) rn system("CLS");rn printf("欢迎来到人事管理系统\n");rn printf("1.管理员界面\n3.保存并退出\n请输入数字:");rn int i;rn scanf("%d", &i);rn int miyao = 1653226;//密钥rn int shurumiyao;rn switch(i) rn case 1:printf("请输入管理员的密钥:");scanf("%d", &shurumiyao);rn if (shurumiyao == miyao) rn system("CLS");rn printf("欢迎进入管理员界面!\n");rn head = guanliyuan(head);rn continue;rn rn else printf("输入错误!请重新输入!\n");printf("按回车键继续...");rn getchar();getchar();continue;rn break;rn case 3:baocun(head);return;break;rnvoid chushihua() rn FILE *fp;rn fp = fopen("人事管理数据库.txt", "w");rn fclose(fp);rnvoid chucishiyong() rn printf("此系统初次被使用需要 初始化\n");rn printf("如果不是,点击初始化会清空原有数据\n");rn printf("\n1.初始化\t2.不初始化\n");rn printf("\n请输入数字:");rn int i;rn scanf("%d", &i);rn switch (i) rn case 1: chushihua(); break;rn case 2: break;rn rnrnhuman *duqu(human *head) rn printf("此系统如果没有数据,不能使用读取\n");rn printf("是否 读取?\n");rn printf("1.是\t2.不是\n");rn printf("请输入数字:");rn int i;rn scanf("%d", &i);rn if (i == 1) rn FILE *fp;rn fp = fopen("人事管理数据库.dat", "rb");rn human *p;rn while (!feof(fp)) rn p = (human *)malloc(LEN);rn fread(p, LEN, 1, fp);rn p->next = head->next;rn head->next = p;rn fclose(fp);rn rn rn return head;rnrnvoid baocun(human *head) rn human *p;rn p = head;rn FILE *fp;rn fp = fopen("人事管理数据库.dat", "wb");rn p = p->next;rn while (p->next!= NULL) rn fwrite(p, LEN, 1, fp);rn p = p->next;rn rn fclose(fp);rnrnint main() rn human *head;rn head = creat();rn chucishiyong();rn head = duqu(head);rn denglu(head);rn return 0;rn
帮我看看这段代码哪里出错
rnrn Untitled Documentrn rnrn rnrn rn rn 张三 rn rnrnrnrnrnrn请帮我看看这段代码,我要的效果是当CHECKBOX没有选择时alert aaaa,rnrn现在是不管有没有被选择都会alert aaaarnrn如果加上rn rn 李四rn以上代码是正确的rnrn问题出在哪里?
git远程仓库-github
提交本地库到github第1步:创建SSH Key。在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有id_rsa和id_rsa.pub这两个文件,如果已经有了,可直接跳到下一步。如果没有,打开Shell(Windows下打开Git Bash),创建SSH Key:$ ssh-keygen -t rsa -C “youremail@example.com”2步:登陆GitHub,
帮你屏蔽CSDN上的广告
以下三款插件,绝对能帮你屏蔽大部分广告,特别是csdn的广告,亲测可以! Adblock Plus Adblock Super Simple AdBlock 如果你用的是360浏览器,直接 打开 https://ext.se.360.cn/ 这个网址,搜索添加即可。Google chrome 也能搜索到! ...
关注我就能达到大师级水平,这话我终于敢说了
这句话我真的憋了好久。Android 工程师只要关注我,我就能让你达到大师级水平,不是面试时的吹牛逼水平,不是自我欺骗的了解皮毛的水平,是真正的开发实力。以前我有这个自信,没这个证据。但现在,证据我也有了。关注我的人都知道,我这三个多月来一直在网上分享关于 Android 自定义绘制的技术,并且在一周多前举办了一场线上的「仿写酷应用」活动,让我的粉丝仿写即刻、薄荷健康、小米运动、Flipboard
帮我看看这个函数哪里写错了?
public string CMSendMsg(string recvMobile)rn rn string rece;rn string Message;rnstring ConnStr= System.Configuration.ConfigurationSettings.AppSettings["ConnString"];rn SqlConnection cn=new SqlConnection(ConnStr);rn rece=recvMobile;rn string sql="insert into table(recvMobile) values(@rece)";rn SqlCommand com=new SqlCommand(sql,cn);rn cn.Open();rn tryrn rn int back_number=Convert.ToInt16(com.ExecuteNonQuery());rn if(back_number==1)rn Message="OK";rn return Message;rn rn catch(Exception)rn rn Message="Error";rn return Message;rn rn rn cn.Close();rn return Message;rn
帮我看看这个存储过程问题在哪里
这个是个很简单的存储过程,事实上我只是尝试使用一下游标。rn可是事实上这个游标似乎并没有起作用rnrnBEGINrndeclare myid int;rndeclare done int;rn--定义游标rnDECLARE rs_cursor CURSOR FOR [color=#FF0000]select itemid from relation where userid=1[/color];rn--游标走到最后的标志rnDECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1;rn--打开游标rnopen rs_cursor; rn--开始循环rncursor_loop:looprnFETCH rs_cursor into myid;rn--如果游标走到了最后,就跳出循环rnif done=1 thenrnleave cursor_loop;rnend if;rn--打印出游标循环出来的每个itemid rn[color=#FF0000]select myid[/color]; rnend loop cursor_loop;rnclose rs_cursor;rnENDrn这里我遇到的问题是rn我对应于userid=1的这个查询rnselect itemid from relation where userid=1;在数据库里面可以查出很多条itemid rn可是实际上我这个存储过程的select myid;只执行了一次,也就是只查询出一个itemid。rn似乎这个游标只执行一次就退出循环了。rn我的这个存储过程问题出在哪里呢?请高人指点一下rn谢谢啦。rn
帮我看看这个小程序哪里出问题了
标题:拼接平方数rnrn 小明发现49很有趣,首先,它是个平方数。它可以拆分为4和9,拆分出来的部分也是平方数。169也有这个性质,我们权且称它们为:拼接平方数。rn rn小明想:还有哪些数字是这样的呢?rnrn你的任务出现了:找到某个区间的所有拼接平方数。rn我的代码是:rn[code=c]#include rn#include rnrnint main ()rnrn int i,j=1,k=0,l;rn long int a,b;rn double m,n;rn printf("输入你的a和b:");rn scanf("%ld%ld",&a,&b);rn rn for(i=a;i
帮我看看这个程序代码哪里有问题
[img=http://img.bbs.csdn.net/upload/201501/14/1421223750_456587.png][/img]rn编译不通过,不知道哪里不对
帮我看看这个存储过程错在哪里???
CREATE procedure spssrn rnAsrn if exists (select name from sysobjects where xtype='u' and name='tempspss')rn drop table tempspss rn select * into tempspss from jobsrn rn rn alter table tempspss add 工时价格 money default 0.00 NOT NULLrn alter table tempspss add 配件价格 money default 0.00 NOT NULLrn select 工时价格 from tempspssrnGOrn我想用个查询 将查询结果 into 一个表里rn然后在里面增加几个字段, 然后用游标对里面的数据逐个处理rn但是却说 这个新增加的字段 列名 '工时价格' 无效。rn后来我发现别说游标呢,就连select 工时价格 from tempspss 也出错rn但是 select * from tempspss 则对rnrn谁帮我看看这个存储过程错在哪里???rn
帮我看看这个程序错在哪里,谢谢
#includernfloat add(float num1,float num2)rnrn return num1+num2;rnrn float sub(float num1,float num2)rnrn return num1-num2; rnrn float num(float num1,float num2)rnrn return num1*num2; rnrn float div(float num1,float num2)rnrn if (num2!=0)rn return num1/num2;rn elsern rn cout<<"除数不能为0"<>num1>>op>>num2;rn swich(op)rn rn case'+':result=caculate(add,num1,num2);break;rn case'-':result=caculate(sub,num1,num2);break;rn case'*':result=caculate(mul,num1,num2);break;rn case'/':result=caculate(div,num1,num2);break;rn rn cout<
帮我看看这个小程序 错误在哪里
#includern#includernusing namespace std;rnclass timernpublic:rn time():h(0),m(0),s(0);rn //~time();rn int seth();//设置小时rn int setm();//设置分钟rn int sets();//rn void gettime();rn private:rn int h;rn int m;rn int s; rn;rnrnint time::seth()rnrn cin>>h;rn return h;rn rnint time::setm()rnrn cin>>m;rn return m;rn rnint time::sets()rnrn cin>>s;rn return s;rn rnvoid time::gettime()rncout
帮我看看这个ADOQuery用法错在哪里
这个是要执行4个sql语句,前3个要执行,最后一个要显示到DBGIRD上rn 可是前3句没问题,执行到第4句出了错误,说XX.dll写了XX内存rn(前3句,或后一句单独写都没问题)请问怎么解决呀?rn ADOQuery1->Active=false;rn ADOQuery1->SQL->Clear();rn ADOQuery1->SQL->Add("DROP TABLE my1");rn ADOQuery1->ExecSQL();rnrnrn ADOQuery1->SQL->Clear();rn ADOQuery1->SQL->Add("create TABLE my1(hehe INT,kk int )");rn ADOQuery1->ExecSQL();rnrn ADOQuery1->SQL->Clear();rn ADOQuery1->SQL->Add("INSERT INTO my1(hehe) VALUES(0)");rn ADOQuery1->ExecSQL();rnrn ADOQuery1->Close();rn ADOQuery1->SQL->Clear();rn ADOQuery1->SQL->Add("select * from my1");rn ADOQuery1->Open();
帮我看看这个截屏错在哪里
程序输入两个整数,但是使用max函数后,打出来的每次都是同一个输4243456,这是怎么回事啊?
帮我看看这个问题出在哪里??
下面这个是stu_Login.inc文件:rnrn rn 考生登陆rn rn rn rn rn 考生登陆rn 准考证号rn 姓名rn rn rn rn rn rn rn rnrnrn我在浏览下面这个left.aspx文件的时候,无论是点机确定还是取消都没反应,请问是怎么回事??rnrn<%@ Import Namespace="System"%>rn<%@ Import Namespace="System.Data"%>rn<%@ Import Namespace="System.Data.SqlClient"%>rnrnrnrn rn 登陆界面rnrnrn rnrnrnrnrnrn
帮我看看这个简单的程序错在哪里
int main()rnrn char *name1 = "John"; rn *name1='A'; //编译正确,为什么运行到这条语句就出错?rn
大家帮我看看这个存储过程哪里错了??????
CREATE PROCEDURE Pr_dongtai_editrn@tablename varchar(50)rnASrndeclare @sql varchar(200) rnset @sql='select id,id_unique,title,fb_time from '+@tablename+'ORDER BY id DESC'rnexecute(@sql)rnGOrnrn很奇怪,把+'ORDER BY id DESC'去掉就正常了
请帮我看看这个程序错在哪里:
请帮我看看这个程序错在哪里:rn//rn// rnimport java.applet.Applet;rnimport java.awt.*;rnimport java.awt.event.*;rnrnpublic class eluos extends Appletrn BoxCanvas boxcanvas;rn Button button1;rn public void init()rn boxcanvas=new BoxCanvas();rn boxcanvas.resize(100,100);rn add(boxcanvas);rn button1=new Button("Move Rectangle");rn add(button1);rn button1.addActionListener(this);rn rn public void actionPerformed(ActionEvent event)rn if(event.getSource()==button1)rn for(int loop=0;loop<150;loop++)rn boxcanvas.setLocation(loop,0);rn //end of forrn //end of ifrn rn rnrnrnclass BoxCanvas extends Canvasrn public void paint(Graphics g)rn g.drawRect(10,50,40,40);rn rn
谁来帮我看看这个查询语句哪里错了?
DapJl.InsertCommand.CommandText = "insert into qxjl (发现日期,发现人,记录人,缺陷短内容,对象,缺陷种类,运行记录) values (bdz.nextval," _rn & TxtFxrq.Text & ",'" & DdlFxr.SelectedItem.Text & "','" & DdlJlr.SelectedItem.Text & "','" & TxtQx.Text & "','" _rn & TxtSbmc.Text & "','" & DdlQxzl.SelectedItem.Text & "','" & TxtScyb.Text & "')"rn DapJl.InsertCommand.ExecuteNonQuery()rn运行时报错:缺少逗号rn 我在监测DapJl.InsertCommand.CommandText值时,发现它成了"INSERT INTO QXJL(ID) VALUES (:ID)"rn 其实这个ID是我在ORACLE数据库里设置的一个序列,用来自动增量用的关键字,各位大虾,我应该如何更改?
帮我看看这个程序哪里出了问题
ClientSocket2.Active:= false; rn ClientSocket2.address:= '192.168.1.173'; rn ClientSocket2.port:= 8888; rn SendText := FBankno + ' ¦' + FormatDatetime('yyyy-mm-dd',FStartDate) + ' ¦' + flag + ' ¦' + '0000000000';; rn ClientSocket2.Active:= True; rn havesent := ClientSocket2.Socket.SendText(SendText); rn ClientSocket2.Active:= False; rn rn在ClientSocket2.Active:= True;之后,SERVER端显示连接成功,可是为什么总是数据发送不出去,谢谢,sendtext有值. rn rn
谁帮我看看这个发邮件的错在哪里.
本人直接从阿江网站上把源代码下载下来试用,修改了参数设置,可是部是发送不成功,里面的数据都是真实的..rn希望哪位好心人帮我改改..谢谢了..rn<%@ Language=VBScript %>rn<%rnrn'+++++++++++++++++++++++++++++rn' 参 数 设 置rn'+++++++++++++++++++++++++++++rnrn'邮件底部的广告rnmailfoot="hello 163" '"本邮件使用阿江 FormMail 发送" & vbcrlf & "下载 http://www.ajiang.net"rnrn'用来发送邮件的SMTP服务器rnmailserver="smtp.163.com" '"填在这里"rnrn'如果服务器需要SMTP身份验证则:rn'登录用户名rnmailserverloginname="testjemail" '"填在这里"rn'登录密码rnmailserverloginpass="testjemail" '"填在这里"rn'域名(如果你用“name@domain.com”这样的用户名登录时,请指明domain.comrnmailuserdomain= "testjemail@163.com" '"填在这里"rnrn'+++++++++++++++++++++++++++++rn%>rnrnrnrnrn rn rn FormMail - Ajiang.netrn rnrnrnrn rn rn rn rn rn rn rn<%rn'获取表单数据rnfromname= Request.Form("fromname")rnfrommail= Request.Form("frommail")rntoname= Request.Form("toname")rntomail= Request.Form("tomail")rnmailtitle= Request.Form("mailtitle")rnmailbody= Request.Form("mailbody")rnrn'检查是否填写了表单rnif tomail="" thenrn%>rn " method=post>rn rn 发信人姓名: rn rn rn 发信人信箱: rn rn rn 收信人姓名: rn rn rn 收信人信箱: rn rn 信件主题:  rn rn rn 信件内容: rn       rn rn rn rn rn rn rn<%rnelsern if frommail="" thenrn msg="您必须填写您的邮件地址,才可以发信给别人。"rn elsern rn '=============== 发 信 ================rn dim JMailrn set JMail=server.CreateObject("Jmail.message")rnrn JMail.Silent=truern JMail.Charset = "gb2312"rn JMail.FromName = fromnamern JMail.from = frommailrn JMail.AddRecipient tomail,tonamern JMail.Subject = mailtitlern jmail.Body=mailbody & vbcrlf & vbcrlf & mailfootrnrn JMail.MailServerUserName = mailserverloginnamern JMail.MailServerPassWord = mailserverloginpassrn JMail.MailDomain = mailuserdomainrn sendok=JMail.send(mailserver)rn if sendok thenrn msg="已经成功发送了邮件!"rn elsern msg="发送邮件失败,可能是您填写了错误的邮件地址。" & _rn "如果您确信没有写错邮件地址,则可能是发信程序出了" & _rn "故障,请与管理员联系"rn end ifrn end ifrn%>rn rn rn rn <%=msg%> [返回]rn rn rn rn<%rnend ifrn%>rn rn rn rn rn rn rnrnrn
谁帮我看看这个哪里错了
[code=C/C++]rn#ifndef _POLYGON_Hrn#define _POLYGON_Hrn#includernusing std::vector;rnrnclass Pointrnrnprivate:rn double x_coordinate;rn double y_coordinate;rnpublic:rn Point(double x, double y);rn double getX();rn double getY();rn;rnrnclass Polygonrnrnpublic:rnPolygon();rnvoid add_point(Point p);rn//output the coordinates of the corner points of the polygonrnvoid plot() const;rn// calculate the perimeter of the polygon by computing the distancern// between adjacent points and total up the distancesrndouble perimeter() const;rn// move all points of the polygon by the specified amountsrn// in the x- and y-directionsrnvoid move(double dx, double dy);rn// scale the polygon by scaling all corner points, i.e. multiplyrn// both x- and y-coordinate with the scale factorrnvoid scale(double factor);rnprivate:rnvector corners;rn;rnrn#elifrn[/code]rnrnrnrn[code=C/C++]#includern#include "Polygon.h"rnusing namespace std;rnrnPoint::Point(double x, double y)rnrn x_coordinate = x;rn y_coordinate = y;rnrnrndouble Point::getX()rnrn return x_coordinate;rnrnrndouble Point::getY()rnrn return y_coordinate;rnrnvoid Polygon::add_point(Point p)rnrn corners.push_back(p);rnrnrnvoid Polygon::plot() constrnrn for (int i=0;i
帮我看看这个正则错在哪里?
[code=JScript]rnfunction ChkCTel(obj)rnobj.value=obj.value.trim();rn if(obj.value!="")rn obj.value=obj.value.replace(/\s+|-*/g,"");rn var reg=/^(13|15|18)(\d1)\s*(\d4)\s*(\d4)|(0\d2)\s*(\d4)\s*(\d4)|(0\d3)\s*(\d3)\s*(\d4)$/;rn if(!reg.test(obj.value))rn rn alert("电话号码不正确!"); obj.focus();obj.className="onErr";rn return false;rn elsern rn var s = RegExp.$1+RegExp.$2+" "+RegExp.$3+" "+RegExp.$4;rn obj.value=s; obj.className="";rn return true;rn rn rnrn[/code]rnrn正则匹配国内电话和手机号码,并以空格隔开。rnrn错误症状,输入手机号正常,输入电话号码则变空白,怎么回事?
帮我看看这个函数对象错在哪里?
#include rn#include rn#include rn#include rn#include rnusing namespace std;rnrnrnstruct StringCmp:public binary_functionrnrn int operator()(const char* p1, const char* p2)rn rn const char* pt1=p1,*pt2=p2;rn if(pt1 == NULL && pt2 == NULL)rn return 0;rn else if(pt1 == NULL)rn return -1;rn else if(pt2 == NULL)rn return 1;rnrn //both not nullrn for(;;pt1++,pt2++)rn rn if(*pt1 == '\0' && *pt2 == '\0')rn return 0;rn if(*pt1 == '\0' && *pt2!= '\0')rn return -1;rn else if(*pt2 == '\0' && *pt1!= '\0')rn return 1;rnrn if(*pt1 == *pt2)rn continue;rn else if(*pt1 > *pt2)rn return 1;rn elsern return -1;rn rn rn rn;rnrnrnint main(int argc, char* argv[])rnrn cout<<(bind2nd(StringCmp(),"Test1"))("Test2");rn return 0;rnrnrnrnVC.NET编译不通过,为什么?rn
Head First Python(第二版)
你是不是想学习Python语言但又不想那么费劲地翻阅手册?利用这本《Head First Python(第二版)》,你能很快掌握Python的基础知识,并处理内置数据结构和函数。接下来你将构建你自己的Web应用,研究数据库管理、异常处理,以及数据转换。如果你想知道利用上下文管理器、修饰符、推导式和生成器能够做什么,都可以在这本书中找到。本书将提供一个完整的学习体验,帮助你迅速成为一名Python程序员。
谁能帮我看看这个程序哪里错了
#include rn#include rntypedef struct nodernrn int data;rn struct node *next;rnl;rnvoid main()rnrn l *head=(l*)malloc(sizeof(l));rn l *r;rn int x[10];rn head->next=NULL;rn r=head;rn int i=0;rn printf("请输入十个数字:\n");rn for(i=0;i<10;i++)rn scanf("%d",x[i]);rn for(i=0;i<10;i++)rn rn l *p=(l*)malloc(sizeof(l));rn p->data=x[i];rn p->next=NULL;rn r->next=p;rn r=r->next;rn ;rn while(head->next!=NULL)rn rn printf("%d ",head->data);rn head=head->next;rn ;rnrn以指针方式输入10个数并输出
帮我看看这个程序,哪里有问题。
#includernmain()rnrnfloat r,area;rnfor(r=1;r<=10;r++)rnarea=pi*r*r;rnif(area>100)break;rnprintf("%5.2f",area);rnrnrn帮我看看哪里是不是有问题,运行的时候他总说undefined symbol '_pi' in module noname.crn他是说的我的pi没有定义么?rn
请帮我看看这个sql错在哪里
我想获得加班的小时数。ResultOtTime1是小时的字段。rnsum(if(ResultOtTypeName1='平常加班',ResultOtTime1,0)+if(ResultOtTypeName2='平常加班',ResultOtTime2,0)+if(ResultOtTypeName3='平常加班',ResultOtTime3,0))/3600
帮我看看这个dropdownlist错在哪里?
protected System.Web.UI.WebControls.TextBox txtId;rn protected System.Web.UI.WebControls.TextBox txtName;rn protected System.Web.UI.WebControls.DropDownList Dlist;rn protected System.Web.UI.WebControls.Button btnOK;rnprivate void Page_Load(object sender, System.EventArgs e)rn rn if(!IsPostBack)rn rn DroplistDataBind(); rn rn rn private void DroplistDataBind()rn rn //省略....rn rn private void btnOK_Click(object sender, System.EventArgs e)rn rn string Idno = "";rn string Iname = "";rn string Ixm = "";rn rn Iname = txtName.Text.Trim();rn rn Idno = txtId.Text.Trim();rn rn lxm=Dlist.SelectedValue.Trim();rnrn Response.Redirect("abcde.aspx?Cxm="+Ixm+"&Cno="+Idno+"&Cname="+Iname);rn rnrn private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)rn rn rnrn运行时Dlist绑定正常, 当上面这个button点击后Idno和Iname读取都正常.但lxm老是空的,取不到Dlist中选定的值,怎么回事?
帮我看看这个包PACKAGER错在哪里?
rnCREATE OR REPLACE PACKAGE INT_CHEMDANGERPackage ASrnTYPE T_CURSOR IS REF CURSOR;rnrn --Get INT_CHEMDANGER Declaration---rn PROCEDURE GetINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn cur_INT_CHEMDANGER OUT T_CURSORrn );rn rn --Get All INT_CHEMDANGERs Declaration---rn PROCEDURE ListAllINT_CHEMDANGERs (cur_INT_CHEMDANGER OUT T_CURSOR);rn rn --Update INT_CHEMDANGER Declaration---rn PROCEDURE UpdateINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn p_CHEMDANGERCLASS IN VARCHAR2,rn p_CHINESENAME IN VARCHAR2,rn p_ENGLISHNAME IN VARCHAR2,rn p_OTHERNAME IN VARCHAR2,rn p_CONSULTTREATMENT IN VARCHAR2,rn p_CONSULTMATTER IN VARCHAR2,rn p_EDITFLAG IN CHAR,rn p_ODOR IN VARCHAR2,rn p_COLOR IN VARCHAR2,rn p_FATALNESS IN VARCHAR2,rn p_STATE IN VARCHAR2,rn p_BURNINGRESULT IN VARCHAR2,rn p_DEPOSITEANDPACK IN VARCHAR2,rn p_TABOO IN VARCHAR2,rn p_TOSKIN IN VARCHAR2,rn p_TOEYES IN VARCHAR2,rn p_TOBREATHPATH IN VARCHAR2,rn p_ASPHYXIASYMPTOM IN VARCHAR2,rn p_CENTRENERVESYS IN VARCHAR2,rn p_BREATHSYS IN VARCHAR2,rn p_CYCLESYS IN VARCHAR2,rn p_DIGESTIVESYS IN VARCHAR2,rn p_LD50 IN VARCHAR2,rn p_LC50 IN VARCHAR2,rn p_APPENDFILE IN VARCHAR2rn );rn rn --Delete INT_CHEMDANGER Declaration---rn PROCEDURE DeleteINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBERrn );rn rn --Insert INT_CHEMDANGER Declaration---rn PROCEDURE InsertINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn p_CHEMDANGERCLASS IN VARCHAR2,rn p_CHINESENAME IN VARCHAR2,rn p_ENGLISHNAME IN VARCHAR2,rn p_OTHERNAME IN VARCHAR2,rn p_CONSULTTREATMENT IN VARCHAR2,rn p_CONSULTMATTER IN VARCHAR2,rn p_EDITFLAG IN CHAR,rn p_ODOR IN VARCHAR2,rn p_COLOR IN VARCHAR2,rn p_FATALNESS IN VARCHAR2,rn p_STATE IN VARCHAR2,rn p_BURNINGRESULT IN VARCHAR2,rn p_DEPOSITEANDPACK IN VARCHAR2,rn p_TABOO IN VARCHAR2,rn p_TOSKIN IN VARCHAR2,rn p_TOEYES IN VARCHAR2,rn p_TOBREATHPATH IN VARCHAR2,rn p_ASPHYXIASYMPTOM IN VARCHAR2,rn p_CENTRENERVESYS IN VARCHAR2,rn p_BREATHSYS IN VARCHAR2,rn p_CYCLESYS IN VARCHAR2,rn p_DIGESTIVESYS IN VARCHAR2,rn p_LD50 IN VARCHAR2,rn p_LC50 IN VARCHAR2,rn p_APPENDFILE IN VARCHAR2rn );rn rnEND INT_CHEMDANGERPackage;rn/*rn--create sequence if we need it-----rn CREATE SEQUENCE INT_CHEMDANGER_SEQrn MINVALUE 1rn NOMAXVALUErn START WITH 1rn INCREMENT BY 1rn NOCACHE;rn*/rnCREATE OR REPLACE PACKAGE BODY INT_CHEMDANGERPackage ASrnrn --Get INT_CHEMDANGER Body---rn PROCEDURE GetINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn cur_INT_CHEMDANGER OUT T_CURSORrn )rn ISrn BEGINrn OPEN cur_INT_CHEMDANGER FORrn SELECT * FROM INT_CHEMDANGER rn WHERErn CHEMDANGERID = p_CHEMDANGERIDrn ;rn END GetINT_CHEMDANGER;rn rn --Get INT_CHEMDANGER List Body---rn PROCEDURE ListAllINT_CHEMDANGERs (cur_INT_CHEMDANGER OUT T_CURSOR)rn ISrn BEGINrn OPEN cur_INT_CHEMDANGER FORrn SELECT * FROM INT_CHEMDANGER ;rn END ListAllINT_CHEMDANGERs;rn rn --Update INT_CHEMDANGER Body---rn PROCEDURE UpdateINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn p_CHEMDANGERCLASS IN VARCHAR2,rn p_CHINESENAME IN VARCHAR2,rn p_ENGLISHNAME IN VARCHAR2,rn p_OTHERNAME IN VARCHAR2,rn p_CONSULTTREATMENT IN VARCHAR2,rn p_CONSULTMATTER IN VARCHAR2,rn p_EDITFLAG IN CHAR,rn p_ODOR IN VARCHAR2,rn p_COLOR IN VARCHAR2,rn p_FATALNESS IN VARCHAR2,rn p_STATE IN VARCHAR2,rn p_BURNINGRESULT IN VARCHAR2,rn p_DEPOSITEANDPACK IN VARCHAR2,rn p_TABOO IN VARCHAR2,rn p_TOSKIN IN VARCHAR2,rn p_TOEYES IN VARCHAR2,rn p_TOBREATHPATH IN VARCHAR2,rn p_ASPHYXIASYMPTOM IN VARCHAR2,rn p_CENTRENERVESYS IN VARCHAR2,rn p_BREATHSYS IN VARCHAR2,rn p_CYCLESYS IN VARCHAR2,rn p_DIGESTIVESYS IN VARCHAR2,rn p_LD50 IN VARCHAR2,rn p_LC50 IN VARCHAR2,rn p_APPENDFILE IN VARCHAR2rn )rn ISrn BEGINrn UPDATE INT_CHEMDANGERrn SETrn CHEMDANGERCLASS = p_CHEMDANGERCLASS,rn CHINESENAME = p_CHINESENAME,rn ENGLISHNAME = p_ENGLISHNAME,rn OTHERNAME = p_OTHERNAME,rn CONSULTTREATMENT = p_CONSULTTREATMENT,rn CONSULTMATTER = p_CONSULTMATTER,rn EDITFLAG = p_EDITFLAG,rn ODOR = p_ODOR,rn COLOR = p_COLOR,rn FATALNESS = p_FATALNESS,rn STATE = p_STATE,rn BURNINGRESULT = p_BURNINGRESULT,rn DEPOSITEANDPACK = p_DEPOSITEANDPACK,rn TABOO = p_TABOO,rn TOSKIN = p_TOSKIN,rn TOEYES = p_TOEYES,rn TOBREATHPATH = p_TOBREATHPATH,rn ASPHYXIASYMPTOM = p_ASPHYXIASYMPTOM,rn CENTRENERVESYS = p_CENTRENERVESYS,rn BREATHSYS = p_BREATHSYS,rn CYCLESYS = p_CYCLESYS,rn DIGESTIVESYS = p_DIGESTIVESYS,rn LD50 = p_LD50,rn LC50 = p_LC50,rn APPENDFILE = p_APPENDFILErn WHERErn CHEMDANGERID = p_CHEMDANGERID rn ; rn END UpdateINT_CHEMDANGER;rnrn --Delete INT_CHEMDANGER Body---rn PROCEDURE DeleteINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBERrn )rn ISrn BEGINrn DELETE FROM INT_CHEMDANGERrn WHERE rn CHEMDANGERID = p_CHEMDANGERIDrn ;rn END DeleteINT_CHEMDANGER;rn rn --Insert INT_CHEMDANGER Body---rn PROCEDURE InsertINT_CHEMDANGER (rn p_CHEMDANGERID IN NUMBER,rn p_CHEMDANGERCLASS IN VARCHAR2,rn p_CHINESENAME IN VARCHAR2,rn p_ENGLISHNAME IN VARCHAR2,rn p_OTHERNAME IN VARCHAR2,rn p_CONSULTTREATMENT IN VARCHAR2,rn p_CONSULTMATTER IN VARCHAR2,rn p_EDITFLAG IN CHAR,rn p_ODOR IN VARCHAR2,rn p_COLOR IN VARCHAR2,rn p_FATALNESS IN VARCHAR2,rn p_STATE IN VARCHAR2,rn p_BURNINGRESULT IN VARCHAR2,rn p_DEPOSITEANDPACK IN VARCHAR2,rn p_TABOO IN VARCHAR2,rn p_TOSKIN IN VARCHAR2,rn p_TOEYES IN VARCHAR2,rn p_TOBREATHPATH IN VARCHAR2,rn p_ASPHYXIASYMPTOM IN VARCHAR2,rn p_CENTRENERVESYS IN VARCHAR2,rn p_BREATHSYS IN VARCHAR2,rn p_CYCLESYS IN VARCHAR2,rn p_DIGESTIVESYS IN VARCHAR2,rn p_LD50 IN VARCHAR2,rn p_LC50 IN VARCHAR2,rn p_APPENDFILE IN VARCHAR2rn )rn ASrn BEGINrn INSERT INTO INT_CHEMDANGER (rn CHEMDANGERID,rn CHEMDANGERCLASS,rn CHINESENAME,rn ENGLISHNAME,rn OTHERNAME,rn CONSULTTREATMENT,rn CONSULTMATTER,rn EDITFLAG,rn ODOR,rn COLOR,rn FATALNESS,rn STATE,rn BURNINGRESULT,rn DEPOSITEANDPACK,rn TABOO,rn TOSKIN,rn TOEYES,rn TOBREATHPATH,rn ASPHYXIASYMPTOM,rn CENTRENERVESYS,rn BREATHSYS,rn CYCLESYS,rn DIGESTIVESYS,rn LD50,rn LC50,rn APPENDFILErn )rn VALUES (rn INT_CHEMDANGER_SEQ.NEXTVAL,rn p_CHEMDANGERCLASS,rn p_CHINESENAME,rn p_ENGLISHNAME,rn p_OTHERNAME,rn p_CONSULTTREATMENT,rn p_CONSULTMATTER,rn p_EDITFLAG,rn p_ODOR,rn p_COLOR,rn p_FATALNESS,rn p_STATE,rn p_BURNINGRESULT,rn p_DEPOSITEANDPACK,rn p_TABOO,rn p_TOSKIN,rn p_TOEYES,rn p_TOBREATHPATH,rn p_ASPHYXIASYMPTOM,rn p_CENTRENERVESYS,rn p_BREATHSYS,rn p_CYCLESYS,rn p_DIGESTIVESYS,rn p_LD50,rn p_LC50,rn p_APPENDFILErnrn ); rn SELECT INT_CHEMDANGER_SEQ.CURRVAL INTO p_CHEMDANGERID FROM DUAL;rn END InsertINT_CHEMDANGER;rn rnEND INT_CHEMDANGERPackage;rnrn
大家帮我看看这个是哪里的问题
string sql = "select SurveyID,SurveyDate,SurveyProject,SurveyCPI,SurveyLength,SurveyMemo,SurveyStatus from survey";rn con = new SqlConnection(connstr);rn con.Open();rn SqlCommand com = new SqlCommand(sql, con);rn SqlDataReader read = com.ExecuteReader();rn while (read.Read())rn rn SurveyID = read["SurveyID"].ToString();rn SurveyDate = read["SurveyDate"].ToString();rn SurveyProject = read["SurveyProject"].ToString();rn SurveyCPI = read["SurveyCPI"].ToString();rn SurveyLength = read["SurveyLength"].ToString();rn SurveyMemo = read["SurveyMemo"].ToString();rn SurveyStatus = read["SurveyStatus"].ToString();rn string sql1 = "select * from surveylog where Username='wangyi1687' and SurveyID='" + SurveyID + "'";rn con = new SqlConnection(connstr);rn con.Open();rn SqlCommand com1 = new SqlCommand(sql1, con);rn SqlDataReader reader = com1.ExecuteReader();rn if (reader.Read())rn rn SurveyStatus2 = reader["SurveyStatus"].ToString();rn con = new SqlConnection(connstr);rn string sql2 = "select * from survey where SurveyID='" + SurveyID + "'";rn //创建SqlDataAdapter对象,调用sqlrn SqlDataAdapter myadapter = new SqlDataAdapter(sql2, con);rn //创建并填充DataSetrn myadapter.Fill(ds);rn GridView1.DataSource = ds;rn GridView1.DataBind();rn con.Close();rn rn rnprotected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)rn rn if (e.Row.RowType == DataControlRowType.DataRow)rn rn if (SurveyStatus2 == "有效")rn rn //GridView1中显示字段的位置,假如在第5列就用e.Row.Cells[4].Text rn e.Row.Cells[6].Text = "有效";rn rn if (SurveyStatus2 == "完成")rn rn e.Row.Cells[6].Text = "完成";rn rn if (SurveyStatus2 == "失败")rn rn e.Row.Cells[6].Text = "失败";rn rn if (SurveyStatus2 == "进行中")rn rn e.Row.Cells[6].Text = "进行中";rn rn rn rnrn现在问题出在,绑定完数据后,第2条数据把第1条的e.Row.Cells[6].Text的值覆盖了
大家帮我看看,这个程序错在哪里了
long double buff[100],ii;rnii=12.35;rnHFILE CJ;rnCJ= -lcreate("c:\\bbb.txt",0);rnfor (int j; j<100; j++) buff[j]=0;rnfor (int i; i<20; i++)rnrn ii=ii+i;rn Asistring str=FloatToStr(ii)rn buff[i]=str /* 这里出错了,怎样可以将str转换成 char型呢?rn _lwrite(CJ,buff,strlen(buff));rnrnrnclose(CJ)
帮我看看这个委托哪里出问题?
ppc下开发。窗口login 里有个进度条,想在类1中调用这个进度条rnpublic delegate void dgpross(int dq,int max);//定义委托rnpublic static void pross(int d, int z)rn rn login fg = new login();rn fg.pBar1.Minimum = 0;rn fg.pBar1.Maximum = z;rn if (fg.pBar1.Value <= fg.pBar1.Maximum)rn rn fg.pBar1.Value = d;rn rn rnrn类1 中a是socket当前接收到的字节数,调用委托:rnrnif (a < 100)rn rn login.dgpross d1 =new login.dgpross(login.pross);rn d1(a, 100);rn rnrn现在进度条没有反映!大家帮我看看哪里出问题了。
帮我看看这个js错在哪里?
[code=HTML]rn rn 首页rn 利兹留学rn 布拉德福留学rn 大学排名rn 签证指南rn 留学生活rn 留学政策rn 校友社区 rn rn rn 利兹大学 利兹城市大学 利兹城市导航rn 布拉德福德大学 布拉德福德城市导航rn rn rn rn rn rnrn[/code]rnrntab.jsrn[code=JScript]function tabit(btn) rn var idname = new String(btn.id);rn var s = idname.indexOf("_");rn var e = idname.lastIndexOf("_")+1;rn var tabName = idname.substr(0, s);rn var id = parseInt(idname.substr(e, 1));rn var oTab = btn.parentNode.childNodes;rn var k = 0, tabNumber = 0;rn while (k < oTab.length) rn if (oTab.item(k).nodeName == 'LI')rn tabNumber = tabNumber + 1;rn k++;rn rn for(i=0;i
大家帮我看看这个语句哪里错了?
StringBuilder strSql = new StringBuilder();rnstrSql.Append("select * from D_User where User_Name='"+getUser.User_Name.ToString().Trim()+"' and User_Pasword='"+getUser.User_Password.ToString().Trim()+"'");rn// select * from D_User User_Name='asdf' and User_Pasword='ad';数据库里没有这条信息,我的意图就是查看有没有这个人!rn但是报错:为将对象引用到实例rnint str = (int)SqlHelper.GetSingle(strSql.ToString());rnreturn str;rnrnrnpublic static object GetSingle(string SQLString, params SqlParameter[] cmdParms)rn rn using (SqlConnection connection = new SqlConnection(connectionString))rn rn using (SqlCommand cmd = new SqlCommand())rn rn tryrn rn PrepareCommand(cmd, connection, null, SQLString, cmdParms);rn object obj = cmd.ExecuteScalar();rn cmd.Parameters.Clear();rn if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))rn rn return null;rn rn elsern rn return obj;rn rn rn catch (System.Data.SqlClient.SqlException e)rn rn throw new Exception(e.Message);rn rn rn rn rnrn
帮我看看这个网站错在哪里?
帮我看看这个网站错在哪里?rnhttp://www.cnnolan.cn/nxnet/rn是不是要改什么地方?
请帮我看看这个链表的错误在哪里
下面这个链表是先赋值,然后输出,然后释放,但是黑窗口的输出中会有“应用程序错误”的提示,不知怎么改,请帮忙看看。rnrn[code=c]#include "stdafx.h"rn#include rn#include rnrn#define SIZE 100rnrnstruct name rnrn char firstname[SIZE];rn char lastname[SIZE];rn struct name *next;rn;rnrnint main(void)rnrn struct name *head, *current;rnrn//为链表赋值rn head = (struct name *)malloc(sizeof(struct name));rn puts("Please enter the firstname of a student:");rn gets(head->firstname);rn puts("Please enter the lastname of a student:");rn gets(head->lastname);rn current = (struct name *)malloc(sizeof(struct name));rn head->next = current;rnrn puts("Please enter the firstname of another student:"); rn while(gets(current->firstname)!=NULL && current->firstname[0] != '\0')rn rn puts("Please enter the lastname of another student:");rn gets(current->lastname);rn current = (struct name *)malloc(sizeof(struct name));rn current->next = current;rn rnrn//输出链表rn current = head; rn while(current != NULL)rn rn printf("%-5s %-5s\n", current->firstname, current->lastname);rn current = current->next ;rn rnrn//释放内存 rn current = head; rn while(current != NULL)rn rn free(current);rn current = current->next ;rn rn rn return 0;rnrn[/code]
请帮我看看这个语句错在哪里?
rn本来type是button,还要用image,onclick为什么触发不了gouwu()函数啊?
兄弟帮我看看这个GETLine错在哪里?
for( int i = pData->m_nNumData-240; i < pData->m_nNumData; i++ )rn ifstream tt( "signal.txt "); rn string line; rn char kxsz;rn while(getline(tt,line,'\n ')) rn--------------------Configuration: FOXFUNC - Win32 Debug--------------------rnCompiling...rnFoxFunc.cpprnE:\SoftWare\FOXFUNC\FoxFunc.cpp(72) : error C2784: 'class std::basic_istream<_E,_Tr> &__cdecl std::getline(class std::basic_istream<_E,_Tr> &,class std::basic_string<_E,_Tr,_A> &,const _E)' : could not deduce template argument for 'class std::basic_rnistream<_E,_Tr> &' from 'class std::basic_ifstream >'rnE:\SoftWare\FOXFUNC\FoxFunc.cpp(72) : error C2782: 'class std::basic_istream<_E,_Tr> &__cdecl std::getline(class std::basic_istream<_E,_Tr> &,class std::basic_string<_E,_Tr,_A> &,const _E)' : template parameter '_E' is ambiguousrn could be 'int'rn or 'char'rnE:\SoftWare\FOXFUNC\FoxFunc.cpp(72) : error C2780: 'class std::basic_istream<_E,_Tr> &__cdecl std::getline(class std::basic_istream<_E,_Tr> &,class std::basic_string<_E,_Tr,_A> &)' : expects 2 arguments - 3 providedrn e:\procedure\vc++6.0 green\vc98\include\string(145) : see declaration of 'getline'rnE:\SoftWare\FOXFUNC\FoxFunc.cpp(72) : fatal error C1903: unable to recover from previous error(s); stopping compilationrn执行 cl.exe 时出错.rnrnFoxFunc.obj - 1 error(s), 0 warning(s)
请帮我看看这个语句错在哪里了
str1:=FCbYear1.Text+'-1-1';rnstr2:=IntToStr(StrToInt(FCbYear1.Text)+1)+'-1-1';rnDate_Range:=' and (B.Paytime>=#'+str1+'# and B.Paytime<#'+str2+'#) ';rnrn从文本组件中获得年数,然后添加‘-1-1’作为月和日rn再把所得到的时间作为sql查询的条件rn但是结果好像查询的时候str1和str2的值都是随机的实数rn是不是因为没有把str1转换成date型所致阿?我试过strtodatetime,不行呀rn说incompatible types:'string'and 'TDateTime'rn应该怎么做啊rn
帮我看看这个程序哪里不对好不好?
这是作业要求 输入一行字符,输出大写字母转小写,小写不变rnrnrn#include "stdafx.h"rnrnvoid main()rnchar c;rnprintf("请输入一个字符串\n");rnwhile((c=getchar()!='\n'))rnrnif(c>='a'&&c<='z')rn c=c;rnelsern c=c+32;rn printf("%c",c); rn rnrnrn
大家帮我看看这个程序错在哪里?
这个程序是仿照别人写的,画鼠标拖动那个矩形框的。现在矩形框能画出来,但是位置不对,不在鼠标点击的地方。而是出现在控件左上角的某个区域。请教各位大虾。附程序如下:rnrnLRESULT CTtest::OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)rnrn WORD xPos = LOWORD(lParam); // horizontal position of cursorrn WORD yPos = HIWORD(lParam); // vertical position of cursorrn rn m_pre.left=xPos;rn m_pre.top=yPos;rn m_pre.right=xPos;rn m_pre.bottom=yPos;rnrn m_new.left=xPos;rn m_new.top=yPos;rn m_new.right=xPos;rn m_new.bottom=yPos;rnrn bDraw=TRUE;rn return 0;rnrnrnLRESULT CTtest::OnLButtonUp(UINT uMsg, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)rnrn bDraw=FALSE;rn HDC hDC=::GetDC(m_hWnd); //取得全屏幕设备描述句柄 rn SetROP2(hDC,oldrop2); //恢复原来作图方式 rn ::ReleaseDC(m_hWnd,hDC); //释放设备描述符表 rnrn FireViewChange();rn return 0;rnrnrnLRESULT CTtest::OnMouseMove(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/)rnrn if(bDraw && wParam==MK_LBUTTON )rn rn rn HDC hDC=::GetDC(m_hWnd); //取得全屏幕设备描述句柄rn oldrop2= GetROP2(hDC); //取得原来屏幕画图方式 rn SetROP2(hDC,R2_XORPEN); //设置异或屏幕画图方式rn WORD xPos = LOWORD(lParam); // horizontal position of cursorrn WORD yPos = HIWORD(lParam); // vertical position of cursorrn SelectObject(hDC,GetStockObject(NULL_BRUSH));rn SelectObject(hDC,GetStockObject(WHITE_PEN));rn Rectangle(hDC,m_pre.left,m_pre.top,m_pre.right,m_pre.bottom);rn m_new.right=xPos;rn m_new.bottom=yPos;rn Rectangle(hDC,m_new.left,m_new.top,m_new.right,m_new.bottom);//画新矩形rn rnrn m_pre.right=m_new.right;rn m_pre.bottom=m_new.bottom;rn rnrnrn return 0;rn
帮我看看这个存储过程错误出在哪里
ALTER PROCEDURE GetPlanUpStatusrn@sureStartYear int,rn@sureStartMonth int,rn@sureEndYear int,rn@sureEndMonth int,rn@nodeID varchar(50),rn@Up_Status int output rnASrn select @Up_Status=COUNT(DISTINCT nodeID) from CaptialMain where sureStartYear=@sureStartYear and sureStartMonth <=@sureStartMonth and sureEndYear=@sureEndYear and sureEndMonth>=@sureEndMonth and nodeID=@nodeID rn RETURN rnrn为什么数据库里面明明COUNT(DISTINCT nodeID)=1,可是@Up_Status却为始终为0
请帮我看看这个程序哪里有错?
Private Sub Picture1_Click()rnx = Picture1.Widthrny = Picture1.HeightrnFor i = 1 To 10rnr = (x * 0.1) * Rudrnb = i * 0.3rnPicture1.Circle (x * Rud, y * Rud), r, QBColor(i), , , brnNext irnEnd Subrn界面是一个窗体,一个图片框,想用这个程序画椭圆,可是click图片框,一点反应也没有,请问这个程序哪里有错?谢谢
帮我看看这个友元函数哪里有错!
//mytime3.hrn#ifndef MYTIME3_H_rn#define MYTIME3_H_rnrnrn#includernusing namespace std;rnrnclass Timernrnprivate:rn int hours;rn int minutes;rnpublic:rn Time();rn Time(int h,int m=0);rn void AddMin(int m);rn void AddHr(int h);rn void Reset(int h=0,int m=0);rn Time operator+(const Time &t)const;rn Time operator-(const Time &t)const;rn Time operator*(double n)const;rn friend Time operator*(double m,const Time &t)rn rn return t*m;rn rn rn friend ostream &operator<<(ostream &os,const Time &t);rn rnrn;rnrn#endifrnrnrnrnrnrnrnrn//mytime3.cpprn#include"mytime3.h"rnrnTime::Time()rnrn hours=minutes=0;rnrnrnTime::Time(int h,int m)rnrn hours=h;rn minutes=m;rnrnrnrnvoid Time::AddMin(int m)rnrn minutes+=m;rn hours+=minutes/60;rn minutes=minutes%60;rnrnrnvoid Time::AddHr(int h)rnrn hours+=h;rnrnrnvoid Time::Reset(int h,int m)rnrnrn hours=h;rn minutes=m;rnrnrnTime Time::operator+(const Time &t)constrnrn Time sum;rn sum.minutes=minutes+t.minutes;rn sum.hours=hours+t.hours+sum.minutes/60;rn sum.minutes%=60;rn return sum;rnrnrnTime Time::operator-(const Time &t)constrnrn Time diff;rn int tot1,tot2;rn tot1=t.minutes+60*t.hours;rn tot2=minutes+60*hours;rn diff.minutes=(tot2-tot1)%60;rn diff.hours=(tot2-tot1)/60;rn return diff;rnrnrnTime Time::operator *(double mult)constrnrn Time result;rn long totalminute=hours*mult*60+minutes*mult;rn result.hours=totalminute/60;rn result.minutes=totalminute%60;rn return result;rnrnrnostream &operator<<(ostream &os,const Time &t) //这个友元为什么不能用?rnrn os<
帮我看看这个语句哪里有错啊?
insert into table01(jishu,ye) values(" & CCur(ListView1.ListItems(intin).SubItems(2)) & "," & CCur(ListView1.ListItems(intin).SubItems(3)) & ")rnrn如果插入的不为空就没有问题,若为空,就会出现类型不匹配的错误!为什么啊?rn这两个jishu,ye是money类型的,所以用CCur转换哈!有没有人能够帮助我?谢谢rn
帮我看看这个语句错在哪里呀,
sql="insert into [news](title,content,time)values('"&title&"','"&content&"','"&now()&"')"rnconn.execute (sql)rn这样子写有错吗?老是报错说insert into 语句错误
帮我看看这个java程序哪里错了?
import java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnrnpublic class TextAreaDemo extends JFramern private JTextArea textArea1,textArea2;rn private JButton copyButton;rn rn //set up GUIrn public TextAreaDemo()rn super("TextArea Demo");rn Box box=Box.createHorizontalBox();rn rn String string="This is a demo string to\n"+rn "illustrate copying text\n"+rn "from on TextArea to \n"+rn "another TextArea using an\n"+"external event\n";rn rn //set up textArea1rn textArea1 = new JTextArea(string,10,15);rn box.add(new JScrollPane(textArea1));rn rn //set up copyButton rn copyButton = new JButton("Copy >>>");rn copyButton.addActionListener(rn //anonymous inner class to handle copyButton eventrn new ActionListener()rn //set text in textArea2 to selectedrn //text from textArea1rn public void actionPerformed(ActionEvent event)rn textArea2.setText(textArea1.getSelectedText());rn rn //end anonymous inner class rn );//end call to addActionListenerrn box.add(copyButton);rn rn //set up textArea2rn textArea2= new JTextArea(10,15);rn textArea2.setEditalbe(false);rn box.add(new JScrollPane(textArea2));rn rn //add box to content panern Container container=getContentPane();rn container.add(box); //place in BorderLayout.CENTERrn rn setSize(425,200);rn setVisible(true);rn rn //execute applicationrn public static void main(String [] args)rn TextAreaDemo application= new TextAreaDemo();rn application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rn//end class TextAreaDemo
魔塔控制台版
这个是我这学期的作业, 帮我看看代码有哪些不好的
前辈帮我看看这个问题出在哪里?
Private Sub Command1_Click(Index As Integer)rn Select Case Indexrn Case 0rn On Error GoTo err1rn Adodc1.Recordset.UpdateBatch adAffectAllrn Case 1rn On Error GoTo err1rn Adodc1.Refreshrn Case 2rn aa = InputBox("查找附件编号:", "*")rn If aa <> "*" Thenrn Adodc1.Recordset.MoveFirstrn Adodc1.Recordset.Find "附件编号 like'" & aa & "*'"rn End Ifrn End Selectrn Exit Subrnerr1:rn MsgBox Err.DescriptionrnEnd Subrnrn给车间做的一个数据库管理软件,rn这个是修改模块中按键的代码,rn在运行到:Adodc1.Recordset.MoveFirst 这里的时候提示错误91,rnwith变量什么的。rn请高手帮忙看看问题出在哪里?谢谢!!
帮我看看这个SQL句子哪里出问题了。
sqlStr = "INSERT INTO 客户资料 (姓名,网名,手机,小灵通,座机,QQ,EMAIL,BLOG) VALEUS ('&"+Editxm->Text+"&','&"+Editwm->Text+"&','&"+Editsj->Text+"&','&"+Editxlt->Text+"&','&"+Editgh->Text+"&','&"+Editqq->Text+"&','&"+Editemail->Text+"&','&"+Edithome->Text+"&')";rnVALEUS ('','','','','','','','')"rn DM->ADOQtxb->Close();rn DM->ADOQtxb->SQL->Clear();rn DM->ADOQtxb->SQL->Add(sqlStr);rn DM->ADOQtxb->ExecSQL();
大师们帮我看看这个哪里错了
datarnX WORD 50rnY WORD 20rnZ WORD ?rndata endsrncode segmentrn assume cs:code,ds:datarnstart:rnmov ax,xrnmov ax,yrninc axrnmov dx,ax rnrnCODE ENDSrn END STARTrnrn有8处我找半天没找到
帮我看看这个程序错在哪里了?:(
汇编课需要做一个打印99乘法表的程序。rn我的代码如下:rnrns_seg segment para stackrn dw 100 dup(?)rns_seg endsrnc_seg segment pararn assume cs:c_seg,ss:s_segrnstart:rn mov ch,0rnloop1: inc chrn cmp ch,9rn ja end_loop1rn mov cl,0rnloop2: inc clrn cmp cl,9rn ja end_loop2rnmul_it: mov al,clrn call print_num ;print clrn mov dl,2ahrn call print_char ;print "*"rn mov al,chrn call print_num ;print chrn mov dl,3dhrn call print_char ;print "="rn mov al,chrn mul clrn call print_num ;print cl*chrn mov dl,20hrn call print_charrn mov dl,20hrn call print_charrn mov dl,20hrn call print_char ;print " "rn jmp loop2rnend_loop2:rn mov dl,0dhrn call print_char ;print rn jmp loop1rnend_loop1:rn mov ah,4chrn int 21hrnrnprint_char proc near ;print char in dlrn push cxrn mov ah,2rn int 21hrn pop cxrn retrnprint_char endprnrnprint_num proc near ;print number in alrn push cxrn cmp al,10rn jb p_grn mov bl,10rn div blrn mov bx,axrn mov dl,blrn or dl,30hrn mov ah,2rn int 21hrn mov al,bhrnp_g: mov dl,alrn or dl,30hrn mov ah,2rn int 21hrn pop cxrn retrnprint_num endprnc_seg endsrn end startrnrn可是打印结果是rn1*5=5 2*5=10 3*5=15 4*5=20 5*5=25 6*5=30 7*5=35 8*5=40 9*5=45rn1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36 7*6=42 8*6=48 9*6=54rn1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49 8*7=56 9*7=63rn1*8=8 2*8=16 3*8=24 4*8=32 5*8=40 6*8=48 7*8=56 8*8=64 9*8=72rn1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81rn为什么是从5开始的?高手帮帮菜鸟!
帮我看看这个数据表错在哪里了?
帮我看看这个数据表错在哪里了?rnSQL 语句 : rnrncreate table hym_prod(rnid int(9) not null auto_increment,rnname varchar not null,rntype char(2) null,rnsize varchar(10) null,rnprice varchar(8) null,rnprod longtext null,rns_img varchar(16),rnb_img varchar(16),rntime datetime null,rntj tinyint(1) null,rnprimary key(id)rn)rnrnrnMySQL 返回:rnrnrnYou have an error in your SQL syntax near 'not null,rntype char(2) null,rnsize varchar(10) null,rnprice varchar(8) null,rnp' at line 3rnrnrn
高手帮我看看这个语句错在哪里
一个很简单的问题:rnSQL="SELECT redate as 日期,[color=#FF0000]sum(if stype='LU' then qty else 0 end if) as 数量[/color],memo as 备注 FROM ..."rnSet rs = Server.CreateObject("ADODB.RecordSet")rnrs.Open SQL,conn,1,1rn...rnrn上面红色部分怎么改?rn
请帮我看看这个程序哪里的问题;
main() rn rnint b,a,c,s;rnfloat d; rns=0; rnscanf("%d",&a); rnfor(b=1;b<=a;b++) rn rnif(a%b!=0)rncontinue; rns=s+1;rn rnprintf("s=%d\n",s); rnrn我这个程序是用来计算s就是输入的数有好多个约数的,rn这样运行成立,但是要是我把a的定义改为float型的,它就不对了,rn请问这是为什么,还提示说是illegal use of floating point in function mainrn说是if(a%b!=0)这行错了,是怎么回事;rn刚刚发了帖子,没说清楚,现在重发的;rn
帮我看看这个存储过程错在哪里?
我想找出数据库[四川省所新]在数据库[四川省所]各表里没有的字段。写了以下存储过程.rnrnCREATE proc 字段不同 @tblname varchar(300)rnasrnselect distinct 表名=@tblname, syscolumns.name as 字段名,类型=(select name from systypes where syscolumns.xtype=systypes.xtype),长度=syscolumns.length from 四川省所..syscolumns,四川省所..systypes where id=(select id from 四川省所..sysobjects where name=@tblname) and syscolumns.name not in (select name from 四川省所新..syscolumns where id=(select id from 四川省所新..sysobjects where name=@tblname))rnrnGOrnrn在每个表挨个执行时能够通过,如:rnexec 字段没同 '检验任务' (通过)rnrn但在执行 sp_msforeachtable '字段不同 ?' 时则会报错rn错误信息为:rn服务器: 消息 170,级别 15,状态 1,行 1rn第 1 行: '.' 附近有语法错误。rnrnrn请问各位大侠怎么改rn
帮我看看这个查询错在哪里
search=request.Form("art")rnsex=request.Form("sex")rn '构造日期rn byear=request.form("byear")rn bmonth=request.form("bmonth")rn bday=request.form("bday")rn cmonth=request.form("cmonth")rn cday=request.form("cday")rn rn abc=cdate(byear&"-"&bmonth&"-"&bday)rn cba=cdate(byear&"-"&cmonth&"-"&cday)rnset rs=server.createobject("adodb.recordset")rnif sex=empty thenrnsql="select * from repair where name like '%"&art&"%' or address like '%"&art&"%'rnand addtime between '"&abc&"' and '"&cba&"'rnorder by id desc"rnelsernsql="select * from repair where name like '%"&art&"%' or address like '%"&art&"%' rnand addtime between '"&abc&"' and '"&cba&"'rnand sex='"&sex&"'rnorder by id desc"rnend ifrnrs.open sql,conn,1,1rnrnrnrnMicrosoft VBScript 编译器错误 错误 '800a0409' rnrn未结束的字符串常量 rnrn/hehe/list1.asp,行16 rnrnsql="select * from repair where name like '%"&art&"%' or address like '%"&art&"%'rn---------------------------------------------------------------------------------^rn
帮我看看这个query哪里写错了吗?
为什么运行的时候出现找不到参数'project_id'的错误。rnwith QueryExec dorn beginrn Close;rn SQL.Clear;rn SQL.Add('insert into table(project_id,q_set,type,rank)');rn SQL.Add(' values(:project_id, :qset, :qtype, :qrank)');rn Parameters.paramValues['project_id']:=QueryPro['id'];rn Parameters.ParamValues['qset']:=comboboxQset.Text;rn Parameters.ParamValues['qtype']:=comboboxQtype.Text;rn Parameters.ParamValues['qrank']:=comboboxQrank.Text;rn ExecSQL;rn end;
大家帮我看看这个代码错在哪里
我要实现的功能是:当向文本框输入值时(即文本框内容不为空),前面的选择框就为true,我用以下的代码写当输入值时选择框确没反映。rnrnrnrn rnrnrnrn rn rn rn rn rnrn rn rn rn rn rnrnrnrn
请大家帮我看看这个程序问题在哪里?
我编了一个小程序想实现输入几个数字,然后对着几个数字进行排序,但是现在有点问题,只能打印第一个数字出来,请大家帮我看看问题在哪里?rnimport java.util.*;rnclass addrnrn private int[] array;rn private int nElam;rn rn public add()rn rn array=new int[100];rn nElam=0;rn rn public void insert(int vlaue)rn rn array[nElam]=vlaue;rn nElam++;rn rn rn public void display()rn rn for(int i=0;i1;i--)rn rn for(int j=0;j
谁能帮我看看这个socket程序问题在哪里?
#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#define MYPORT 9527 /*?¨ò?ó??§á??ó???ú*/rn#define BACKLOG 10 /*?àéùμè′yá??ó????*/rnrnint sockfd,new_fd;rnstruct sockaddr_in my_addr;rnstruct sockaddr_in their_addr;rnint sin_size;rnchar *welcome = "Welcome!you have logined my Socket server.\nNow you can sent message to me.\n\n"; /*欢迎信息*/rnchar msg; /*保存客户端发送的字符*/rnrnrnint main(int argc,char **argv)rnrnrn /*获取一个socket流*/rn if((sockfd=socket(AF_INET,SOCK_STREAM,0))==-1)rn rn perror("socket error");rn exit(1);rn rnrn my_addr.sin_family = AF_INET;rn my_addr.sin_port = htons(MYPORT);rn my_addr.sin_addr.s_addr = INADDR_ANY;rn bzero(&(my_addr.sin_zero),0);rnrn /*绑定到指定端口*/rn if((bind(sockfd,(struct sockaddr *)&my_addr,sizeof(struct sockaddr)))==-1)rn rn perror("bind error");rn exit(1);rn rn rn /*开始监听...*/rn if(listen(sockfd,BACKLOG)==-1)rn rn perror("listen error");rn exit(1);rn rnrn printf("%s","The server has started.\n");rn rn /*开始接收数据了*/rn while(1)rn rn sin_size = sizeof(struct sockaddr_in);rn if((new_fd = accept(sockfd,(struct sockaddr *)&their_addr,&sin_size))==-1)rn rn perror("accecpt error");rn continue;rn rnrn printf("Server:got connection from %s\n",inet_ntoa(their_addr.sin_addr));rn if(send(new_fd,welcome,strlen(welcome),0)==-1)rn perror("send error");rnrn while(msg!='#')rn if(recv(new_fd,&msg,1,0)==-1) rn perror("get data error!");rn printf("%s",msg);rn rnrn close(new_fd);rn /* End listen*/rnrnrnclose(sockfd);rnreturn 1;rn /*End Main() */rnrn客户端只要一发信息就断线了,服务端现实rn[doodoo@xx doodoo]$ ./socketrnThe server has started.rnServer:got connection from 202.112.138.20rnSegmentation faultrnrn另外这地方怎么用fork啊,好像用不上啊。
帮我看看这个存储过程哪里错了,谢谢
SqlConnection myConnection = new SqlConnection(SqlHelper.DBCONNECTIONSTRING); rnSqlCommand myCommand = new SqlCommand("DP_AddUserUnion",myConnection);rn//定义访问数据库的方式为存储过程rnmyCommand.CommandType = CommandType.StoredProcedure;rn//创建访问数据库的参数rnSqlParameter[] paramCache = SqlHelper.GetCachedParameters(paramAddUser);rnif(paramCache == null)rnrn paramCache = new SqlParameter[]rn rn new SqlParameter("@UnionID",SqlDbType.Int),rn new SqlParameter("@UserID",SqlDbType.Int),rn new SqlParameter("@NewUnionName",SqlDbType.VarChar,50)rn ;rn SqlHelper.CacheParameters(paramAddUser,paramCache);rn rnrnDianPing.Class.SqlHelper.AddMyCommandParams(myCommand,paramCache);rnparamCache[0].Value = Int16.Parse(UnionID);rnparamCache[1].Value = Int32.Parse(UserID);rnparamCache[2].Direction = ParameterDirection.ReturnValue;rn//打开数据库的连接rnmyConnection.Open();rn//执行数据库的存储过程(访问数据库)rnmyCommand.ExecuteNonQuery(); /////////////////这里出错,跳出rn//关闭数据库的连接rnmyConnection.Close();rnrnrnrn存储过程如下:rnrnPROCEDURE DP_AddUserUnionrn (rn @UnionID int,rn @UserID intrn )rnASrnDECLARE @UseroldUnionID varchar(255) rnDECLARE @NewUnionName varchar(50)rnrnselect @UseroldUnionID = UnionID from tblUser where id = @UserIDrnrnselect @NewUnionName = UnionName from tblUnion where id=@UnionID --新的union名字rnrnupdate tblUser set UnionID = @UseroldUnionID+CONVERT(varchar(20),@UnionID)+'|' where id= @UserIDrn rnRETURN @NewUnionName
帮我看看这个模板的使用错在哪里?
#includern#includern#includern#define Max 100005rnstruct Datarnrn int x ;rn int y ;rn double cx ;rn double cy ;rn;rnData nodes[100005] ;rnrnbool cmpx( Data a, Data b) return a.x * a.cx < b.x * b.cx ; rnbool cmpy( Data a, Data b) return a.y * a.cy < b.y * b.cy ; rnint main(void)rnrn int n , l ,r ,m;rn while(scanf("%d",&n)!=EOF)rn rn //input the datas and change to the positive numbersrn for(int i =0 ; i < n ; i++)rn rn scanf("%d %d %f %f",&nodes[i].x ,&nodes[i].y ,&nodes[i].cx ,&nodes[i].cy);rn nodes[i].x+=DISPLACE ;rn nodes[i].y+=DISPLACE ;rn rn //sort the datas rn sort(&nodes[0],&nodes[n],cmpx); [color=#FF0000]//我的编译器这里说无法识别这sort这个符号[/color] l=1;r=n;rn rn return 0 ;rnrnrn//我对模板的使用不熟,请大家帮我看看,指导指导。。rn
帮我看看这个html代码哪里有问题
[code=HTML]rn rn rn输入注册码 rnrn rn总额 rn rn已用 rn rnrnCF5E1E2C1BEF432FAFC9AA5F9DCB1E9050000012332rn&inputId='+document.getElementById('inputId').value+'&total='+document.getElementById('total').value+'&used='+document.getElementById('used').value;" />rnrnrn[/code]rn这些代码有问题么?rn我怎么点击保存数据这个按钮不能触发它的点击事件?rn有时候会弹出未结束的变量(还是常量,忘了)
关闭
关闭