哪出错了? [问题点数:20分,结帖人dxinyan]

Bbs1
本版专家分:0
结帖率 95.88%
Bbs7
本版专家分:15575
Blank
红花 2007年5月 Web 开发大版内专家分月排行榜第一
Blank
黄花 2005年6月 Web 开发大版内专家分月排行榜第二
2007年4月 Web 开发大版内专家分月排行榜第二
Bbs1
本版专家分:86
Bbs7
本版专家分:12986
Bbs1
本版专家分:0
Bbs2
本版专家分:484
哪出错了???
以下代码哪出<em>错了</em>???怎样改??rnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnimport java.sql.*;rnimport java.util.*;rnpublic class DatabaseFrame extends aFramern public static void main (String [] args)rn aFrame frame = new aFrame();rn frame.setDefaultCloseOperation(EXIT_ON_CLOSE);rn frame.setSize(300, 400);rn frame.show();rn rn rnrnclass aFrame extends JFramern public aFrame()rn Container c = getContentPane();rn c.add(new aPanel());rn rnrnrnclass aPanel extends JPanelrn private JTextField text1 = new JTextField(15);rn private JTextField text2 = new JTextField(15);rn private JTextField text3 = new JTextField(15);rn private JTextField text4 = new JTextField(15);rn private JTextField text5 = new JTextField(15);rn rn private JButton abutton = new JButton("Add");rn private JButton bbutton = new JButton("Cleat");rn rn private JPanel a = new JPanel();rn private JPanel b = new JPanel();rn rn public aPanel()rn add(a, BorderLayout.CENTER);rn add(b, BorderLayout.SOUTH);rn rn a.setLayout(new GridLayout(5,1));rn a.add(text1);a.add(text2);a.add(text3);a.add(text4);a.add(text5);rn b.add(abutton);b.add(bbutton);rn abutton.addActionListener(add);rn bbutton.addActionListener(clear);rn rn rn addlistener add = new addlistener();rn clearlistener clear = new clearlistener();rn rn rn private class addlistener implements ActionListenerrn Connection con = null;rn public void database() throws SQLException, ClassNotFoundExceptionrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn con = DriverManager.getConnection("jdbc:odbc:personinfo");rn Statement stmt = con.createStatement();rn tryrn int rs = stmt.executeUpdate("insert into personinformation (name, "rn + "sex, birthday, address, telephone) values ('" + text1.getText()rn + "', '" + text2.getText() + "', '" + text3.getText() + "', '" +rn text4.getText() + "', '" + text5.getText() + "')");rn System.out.print(rs);rn rn catch(SQLException s)rn System.out.print("sql");rn rn finallyrn stmt.close();rn con.close();rn rn rn public void actionPerformed(ActionEvent e)rn add.database();rn rn rn rn private class clearlistener implements ActionListenerrn public void actionPerformed(ActionEvent e)rn text1.setText("");rn text2.setText("");rn text3.setText("");rn text4.setText("");rn text5.setText("");rn rn rn
到底是哪出错了
在执行时会抱这个错误rnProject Project1exe raised exception class EClassNotFound with message 'Class TDBText not found' Process stopped.Use Step or Run to continue rn各位大哥指点,最好留下QQrnrn
看下哪出错了。。
#includernusing namespace std;rnclass QNErnrn public :rn static int a;//定义静态成员 rn int b;rn ONE(int c,int b)rn a=c;this->b=b; rn ;rn int ONE::a=0;//类外定性说明 rn int main()rn rn ONE one(10,20);rn cout<<
不知道哪出错了
用结构实现对学生的管理rn#includern#includern#includern#includernstruct Studentrnrn int sid;rn std::string name;rn double score;rn int rank;rn;rnviod printInfo( const Student & s)rnstd::cout<<>i>>s>>d;rnid=i;rnstrcpy(name,s);rnscore=d;rnrnint main()rnrn int N=5;rn Student s[];rn std::listls;rn for (i=0;i!=n;++i)rn ls.push_back(s[i]);rn ls.sort( compByScore);rn typedef std::list::itrator StudIter;rn for ( StudIter iter=ls.begin();iter!=ls.end();++iter)rn iter->rank=std::distance(ls.begin(),iter)+1;rn std::cout<< pr;rn for(StudIter iter=ls.begin();iter!=ls.end();++iter)rn rn pr=std::equal_range(iter,ls.end(),*iter,compByScore);rn for(StudIter iter2=pr.first;iter2!=pr.second;++iter2)rn iter2->rank=iter->rank;rn rn std::cout<<
hd1004哪出错了
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they will count the balloons of each color and find the result.rnrnThis year, they decide to leave this lovely job to you. rnrn rnrnInputrnInput contains multiple test cases. Each test case starts with a number N (0 < N >N&&N)rn rn string str[10010];rn int arr[1000];rn memset(arr,0,sizeof(arr));rn int i,j;rn for(i=0;i>str[i];rn if(i==0)rn arr[i]=1;rn elsern rn for(j=0;jarr[j])rn rn k=i;rn rn cout>N&&N)rn rn string str[10010];rn int arr[1000];rn memset(arr,0,sizeof(arr));rn int i,j;rn for(i=0;i>str[i];rn for(j=0;j<
哪出错了
设计一个函数,用来判断一个整数是否为素数rn#include rnint abc(int a)rnrnint i;rnif(a<=1)rnreturn 0;rnelsernrnfor(i=2;i
编译错误,哪出错了
--------------------Configuration: ogltest - Win32 Debug--------------------rnLinking...rnLIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16rnDebug/ogltest.exe : fatal error LNK1120: 1 unresolved externalsrnError executing link.exe.rnrnogltest.exe - 2 error(s), 0 warning(s)rn
看看哪出错了
写一个C或者C++程序完成字符串的转换,如把2008转换为1个2,2个0,1个8,即122018;my2009转换为1m1y122019rnrnrnrnrnrn#include "stdio.h"rn#include"string.h"rnchar * fun(char *p)rnrn char *s,t;rn int i=0,j=0;rnrn for(i=1;*p!='\0';p++,j++)rn rn t=*p;rn for(i=0;*p==t;p++)rn rn i++;rn rn *(s+(j++))=i;rn *(s+j)=*(--p);rn rn *(s+j)='\0';rn return s;rnrnrnvoid main()rnrn char *a;rn scanf("%s",a);rn printf("%s",fun(a));rnrnrn
哪一句出错了
class Demo1rnrn public int a; rnrnrnclass Demo2rnrn public jisuan(Demo1 d) //参数为Demo1的对象drnrn int x=d.i; //(1)rn int y=i; //(2)rnrnrnrn在(1)(2) 两个语句中那个是错误的啊??
哪一行出错了
what is the output of this code?rntypedef structrn int age;rn char name[20];rnPerson;rnrnPerson p=25,"John";rnPerson *ptr=&p;rnprintf("%d",ptr->a);rnrnrnA 25rnB JohnrnC ErrorrnD Address of prnrn正确答案是CrnrnPerson *ptr=&p; 看不懂,一个指针?rnprintf("%d",ptr->a);看不懂,a是一个对象?rnrn这哪一行出<em>错了</em>?
帮忙看下哪出错了
将数组a中那个整数按相反顺序存放~!rnvoid inv(int x[],int n)rnrn int temp,i,j,m=(n-1)/2;rn for(i=0;i,a[i]);rn getch();rn rn老是编译结果出错。。。
这个程序哪出错了
#includernAPIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)rnrn  MessageBox(NULL,"Hello,World!","第一个Windows C程序",MB_OK|MB_ICONASTERISK);rnreturn MB_OK;
请教老鸟哪出错了
main()rnrn int a,b;rn float c,d,e,f;rn scanf("%d%d",&a&b);rn c=a+b;rn d=a-b;rn e=a*b;rn f=a/b;rn printf("%f%f%f%f",c,d,e,f);rn getch();rnrn
大家看是哪出错了
//*********************rn//** ch4_9.cpp **rn//*********************rnrn#include rn#include rn#include rnrndouble f(double x);//子函数原型声明rnrnvoid main()//主函数rnrn int n=1; //初值rn double a=0, b=1;rn double h,Tn,T2n,In,I2n;rnrn const double eps=1e-8;//定义符号常量rnrn h = b-a;rn T2n=I2n=h*(f(a)+f(b))/2;rn In=0;rnrn while(fabs(I2n-In)>=eps) //求积分rn Tn=T2n;rn In=I2n;rnrn double sigma=0.0;rn for(int k=0; k
这是哪出错了,郁闷
页面上有一个button1; 两个textbox, 分别命名为uname,pwd, 也就是一个用户登陆的页面,有如下代码 string a = uname.Text;rn string mystring = "server=localhost;database=course;Trusted_Connection=yes";rn SqlConnection conn = new SqlConnection(mystring);rn conn .Open ();rn string sel = "select * from grade where uid=" + a;rn SqlCommand comm = new SqlCommand(sel, conn);rn SqlDataReader dr = comm.ExecuteReader();rn while (dr.Read())rn rn if (uname.Text==dr["uid"].ToString ())rn rn if (pwd.Text == dr["pwd"].ToString())rn Label1.Text = dr["name"].ToString ();rn rn rn说明:在数据库course中有一个名为grade的表,表中有一列为uid,一列为pwd,有条记录的uid 值为xiaoyang,pwd值为24549984rn运行时,在uname中输入xiaoyang,在pwd中输入24549984,总是出错,出错信息为“列名xiaoyang无效,”这是怎么回事呢
端口监听到底哪出错了
ip xx.xx.xx.13的机器,局域网内ping的通,就是局域网telnet ip 1521端口不通,rnrn本机telnet ip 1521通,netstat -an显示也有xx.xx.xx.13 1521,应该是端口开通的,可是局域网连接接rnrn口,telnet,tnsping就是不通。rn用NetSpeedTest+-+TCP网络连接测试工具监听测试,发现ip xx.xx.xx.13的机器无法监听端口,除了80,8080,139等已开放的端rnrn口外,§监听其它任何端口§,都提示失败。telnet别的机器没问题,把ip换给别的电脑,别的电脑也没问题,端口到底哪出<em>错了</em>,郁闷啊,怎么回事啊?rn
我的程序哪出错了
联上Oracle以后查表不是不是存在,不存在就创建,刚写程序不知道哪<em>错了</em>,请大家帮忙!THX!rntry rn rstab = sconnrn .executeQuery("select * from user_tables where table_name = "rn +"'"+ tablename+"'");rn if (!rstab.next()) rn sconn.executeUpdate(createtab+"(SESSION_KEY1 NUMBER(12))");rn sconn.execute("commit");rn rn finally rn
这条语句哪出错了
rnrnrnrn为什么鼠标放上去后显示rnrn
这程序哪出错了
rn#includern#includernrnint fe(int i, int b, int n, float *result)rnrn int j;rn float x;rn float y;rn float h;rn rn float sum = 0;rnrnrn if(b < i)rn *result = -1;rn return 1;rn rn rn h = fabs(b - i)/n;rn rn for(j = 0; j < n; j ++)rn y = exp(x = i + j * h + h/2)* h;rn sum = sum + y;rn rn *result = sum;rn return 0;rnrnint main()rnrn int n = 100;rn float * result;rn float sum = 0;rn rn fe(0, 1, 100, *result);rn printf("%f", result);rn return 0;rnrn
这句SQL哪出错了
rnStrSql="Select id,rq,nr From diaryinfo Where datediff(mm,rq,#2004-12-1#)=0 and username='jeky' Order By rq Desc";rncmd=new OleDbCommand(StrSql,conn);rndr=cmd.ExecuteReader();rnrn编译没有错,但运行时有错误提示:至少一个参数没有被指定值..rnrn我把"datediff(mm,rq,#2004-12-1#)=0 and "这一条件去掉就正常了.rnrn我是想得到这个月内的记录,哪儿有错?
这个程序哪出错了??
//a公司依据雇员的等级发给津贴,等级A是300,B是250,其它是100。写出计算津贴的程序rn#includernvoid main()rnrn int a,b,op;rn a=300;rn b=250;rn scanf("%d\n",&op);rn switch(op)rn rn case 'a':rn printf("%d",a);rn break;rn default:rn rn
帮忙看看哪出错了?
class yzrn rn circle p;rn double yz_area(double h)rn rn double area; rn area=p.c_area()*h/3;rn return area;rn rn rnclass circle rnrn double c_area(double r)rn rn return r*r*3.14;rn rnrnpublic class lxrnrn public static void main(String[] args)rn rn circle p1=new circle();rn yz p2=new yz();rn System.out.println("圆形的面积为"+p1.c_area(10));rn System.out.println("圆锥的体积为"+p2.yz_area(10));rn rnrn
这段代码哪出错了
declare AALEVEL_ number;temp_ number;PARENT_DOP_ORDER_ID_ number;tempa_ number;rn beginrn select DOP_STRUCTURE_LEVEL,QTY_PER_ASSEMBLY,PARENT_DOP_ORDER_ID rn into AALEVEL_,temp_,PARENT_DOP_ORDER_ID_ from X_CPWLXHQD where PART_NO='15010011' and DOP_ORDER_ID='22';rn end;rnrn WHILE AALEVEL_<>0 LOOPrn beginrn select DOP_STRUCTURE_LEVEL,QTY_PER_ASSEMBLY,PARENT_DOP_ORDER_ID rn into AALEVEL_,tempa_,PARENT_DOP_ORDER_ID_ from X_CPWLXHQDrn where DOP_ORDER_ID=21 and DOP_STRUCTURE_LEVEL=3;rn temp_:=tempa_*temp_;rn AALEVEL_:=AALEVEL_-1;rn end loop;rn这是本人在oracle的一个函数中的一段代码,在调试时出现这个错误:rnORA-06550:line 7,coumln 3:rnPLS-00103:Encounttered the symbol "WHILE"rn请教这个错误是什么错误,应如何解决
帮忙看看哪出错了
#includernusing namespace std;rnchar main ()rnint a ;rncin>>a;rnchar b[10];rnint i=0;rnfor(a;a!=0;a=a/16)rnif(a%16>=10)rnswitch(a%16)rncase 10:b[i]='A';break;rncase 11:b[i]='B';break;rncase 12:b[i]='C';break;rncase 13:b[i]='D';break;rncase 14:b[i]='E';break;rncase 15:b[i]='F';break;rndefault : return 0;rnrnelse b[i]=a%16;rni++;rnrnfor (int j=i;j>=0;j--)rncout<
下面的游标哪出错了
create table tbl_a(A varchar(max) ,B int ,C int,D int )rnrninsert into tbl_a values('期初',0,0,102)rninsert into tbl_a values('1',1,2,0)rninsert into tbl_a values('1',1,5,0)rninsert into tbl_a values('1',2,5,0)rninsert into tbl_a values('1',3,5,0)rninsert into tbl_a values('1',4,5,0)rninsert into tbl_a values('1',4,7,0)rninsert into tbl_a values('1',4,8,0)rninsert into tbl_a values('1',5,8,0)rnrnselect * from tbl_arnrn-------------------------------第二一下代码 想实现(表tbl_a) D=D+B-C rn----------执行下代码会提示 ::rn--消息 16931,级别 16,状态 1,第 15 行rn--当前提取缓冲区内没有行。rndeclare @num int,@ii intrnselect @num=COUNT(*) from tbl_arnset @ii=1rndeclare my_cursor cursor scroll dynamic for select B,C,D from tbl_a rnopen my_cursor rndeclare @a int ,@b int ,@c int ,@aa int ,@bb int,@cc int,@dd intrnfetch next from my_cursor into @a ,@b ,@crnwhile(@@fetch_status=0) rnbegin rnrn if @ii=1 rn set @cc=@crn fetch next from my_cursor into @a ,@b ,@c rn update tbl_a set D=@cc+@a-@b where current of my_cursor rn set @ii=@ii+1rn set @cc=@cc+@a-@brnend rnrnclose my_cursor rndeallocate my_cursor rnrnselect * from tbl_a
我的程序哪出错了
我的想法简单至极,想通过年/月的当前值自动算出该年该月有多少天而已,程序如下:rn rn 年:rn rnrn >rnrn rnrnrnrnrn rnrn 日:rn rn <> empty thenrnrn select case cint(Request.Form("month"))rn case 12'1,3,5,7,8,10,rn %>rn rn rn rn rn rn rn <>0) or (cYear mod 400=0) thenrn NumMonth=29rn elsern NumMonth=28rn end ifrn %>rn rn rn rnrnrnrnrnrn问题是用于判断的year、month变量总是为空,所以根本就没有润年和大小月的判断。请大家帮帮我,这种问题要如何解决,特别是,我想实现日虽年和月的选择不同而动态改变,该如何设计程序。
深度优先遍历哪出错了,求教
代码写的有点乱啊,不要嫌弃啊,求助rnrn[code=C/C++]rn#include rnusing namespace std;rn#define MAX_VERTEX_NUM 20 rnrntypedef structrnrn int adj;rnrnAdjMatrix[MAX_VERTEX_NUM][MAX_VERTEX_NUM];rnrnstruct MGraphrnrn char vertex[MAX_VERTEX_NUM]; // 顶点向量rn AdjMatrix arcs; // 邻接矩阵 rn int vexnum, arcnum; // 图的当前顶点数和边数rn;rnrnstruct Arrrnrn int elem[MAX_VERTEX_NUM];rn;rnrnint LocateVertex(MGraph G,char v);rnvoid CreateUDG(MGraph &G);rnvoid DepthFirstSearch(MGraph G);rnvoid BreadthFirstSearch(MGraph G);rnvoid Display(MGraph G);rnrn//用于返回输弧端点所表示的数值rnint LocateVertex(MGraph G,char v)rnrn int j=0,i;rn for(i=0;i>G.vexnum>>G.arcnum;rnrn cout<<>G.vertex[i];rn rn cout<<>v1>>v2;rn i=LocateVertex(G,v1);rn j=LocateVertex(G,v2);rn G.arcs[i][j].adj=G.arcs[j][i].adj=1; // 置的对称弧 rn rnrnrn//无向图深度优先遍历rnvoid DepthFirstSearch(MGraph G) rnrn int i,j, k=0,visited[MAX_VERTEX_NUM],t=1; //t标记输出顶点个数,visited[20]为标志符用于表示是否已经访问过rn Arr p;rn for(i=0;i
这哪出错了阿?
#include rnint main(void)rnrn long sum_fac(int n);rn int k;rn printf("k=%d\tth e sum is%ld\n",k,sum_fac(k));rn scanf("%d",&k);rn for(k=1;k token|)rn||=== 已完成构建: 1 个错误, 0 个警告 ===|rn
哪出错了,谢谢(*.mdb)
string strAdminID = tbAdminID.Text.Trim().ToUpper();rnstring strPassword = tbPassword.Text.Trim();rnstring strSql = "select Admin_Power from Admin where Admin_ID="+strAdminID+" and Admin_Password="+strPassword;rnstring strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=;User ID=Admin;Data Source=" + Server.MapPath(ConfigurationSettings.AppSettings["DataBase"]);rnOleDbConnection connDataBase = new OleDbConnection ((String)strConn);rnOleDbCommand commDataBase = new OleDbCommand(strSql, connDataBase); rnconnDataBase.Open();rnOleDbDataReader drDataBase = commDataBase.ExecuteReader();rnrnif (drDataBase.Read())rnrn lbMessage.Text = "对不起,用户名或密码出错,请重试,谢谢!";rn return;rnrnelsernrn Session["sinConnString"] = strConn;rnrnrnrnrn报rn异常详细信息: System.Data.OleDb.OleDbException: 至少一个参数没有被指定值。rn行 64: OleDbDataReader drDataBase = commDataBase.ExecuteReader();rnrn谢谢rnrn
代码哪出错了呢????
这个出来怎么什么效果都没有呀??????图片也不是透明的怎么回事呀???郁闷 import java.io.IOException; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image;
这个规则哪出错了
[code=SQL]rncreate rule rl_学生专业表_家庭电话rnasrn@电话 like '0551[0-9][0-9][0-9][0-9][0-9][0-9]'or like '1[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'[/code]rnrn这个规则哪出<em>错了</em>?rnrn还有就是 在SQL2000里,给一张表的一个字段设置了规则,那么能不能在给它设置一个唯一性约束unique ?
调用存储过程哪出错了
下面是一段存储过程的代码,实现修改功能:rnCREATE PROCEDURE [update_data]rn (@num_1 [int],rn @name_2 [char],rn @num_3 [int],rn @name_4 [char](10))rnAS UPDATE [a].[dbo].[data] rnSET [num] = @num_3,rn [name] = @name_4 rnWHERE rn ( [num] = @num_1 ANDrn [name] = @name_2)rnrn前台delphi代码如下:rnADOStoredProc1.Parameters.ParamByName('@num_1').Value:=i;rnADOStoredProc1.Parameters.ParamByName('@name_2').Value:=s;rnADOStoredProc1.Parameters.ParamByName('@num_3').Value:=strtoint(trim(edit1.Text));rnADOStoredProc1.Parameters.ParamByName('@name_4').Value:=trim(edit2.Text);rnADOStoredProc1.ExecProc;rn其中:i,s 是变量,用于存储修改前的值;edit1和edit2中是修改后的。rn现在,点击按钮后无任何变化。rn请问:是哪里出<em>错了</em>?请各位帮助!rn
到底是哪出错了啊????
《Tomcat与Java Web开发技术详解》第6章测试错误,我对照书本上的操作,并且所有的代码都是复制光盘上的源代码,放在指定位置。然后启动Tomacat,在地址栏输入http://localhost/bookstore/bookstore.jsp回车,看到了网上书店的主页面,但是当我点击“查看所有书目”时,就出<em>错了</em>。 rn我是个新手,还不会分析复杂的错误,所以想请高手给我指点一下,rn错误提示如下:rn服务器端发生错误:Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) at com.mysql.jdbc.Connection.(Connection.java:491) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at mypack.BookDB.getConnection(BookDB.java:20) at mypack.BookDB.getBooks(BookDB.java:79) at org.apache.jsp.catalog_jsp._jspService(catalog_jsp.java:134) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) ** END NESTED EXCEPTION ** rn错误原因为:java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) at com.mysql.jdbc.Connection.(Connection.java:491) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at mypack.BookDB.getConnection(BookDB.java:20) at mypack.BookDB.getBooks(BookDB.java:79) at org.apache.jsp.catalog_jsp._jspService(catalog_jsp.java:134) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) ** END NESTED EXCEPTION ** at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:699) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) at com.mysql.jdbc.Connection.(Connection.java:491) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at mypack.BookDB.getConnection(BookDB.java:20) at mypack.BookDB.getBooks(BookDB.java:79) at org.apache.jsp.catalog_jsp._jspService(catalog_jsp.java:134) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) rnrn
忘了配置哪出的错了
Unable to find a javac compiler;com.sun.tools.javac.Main is not onthe classpath.Perhaps JAVA_HOME does not point to theJDK后来上网找到了解决方案:只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/common/lib下,重启动Tomcat,就可以了
这个哪出错了呢?
[code=C/C++]#include rn#include rnrnLRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);rnrnint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)rnrn WNDCLASS wndclass;rn wndclass.lpfnWndProc = WindowProc;rn wndclass.cbClsExtra = 0;rn wndclass.cbWndExtra = 0;rn wndclass.style = CS_HREDRAW | CS_VREDRAW;rn wndclass.lpszClassName = _T("我的窗体");rn wndclass.hInstance = hInstance;rn wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);rn wndclass.hIcon = 0;rn wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);rn wndclass.lpszMenuName = 0;rn rn if(RegisterClass(&wndclass) == 0)rn rn MessageBox(0, _T("错误"), _T("错误"), MB_OK);rn return 0;rn rn HWND hWnd = CreateWindow(_T("我的窗体"), _T("第一个窗体"), WS_OVERLAPPEDWINDOW, 0, 0, 200, 300, 0, 0, hInstance, 0);rn if(hWnd == NULL)rn rn MessageBox(0, _T("失败"), _T("失败"), MB_OK);rn return 0;rn rn ShowWindow(hWnd, SW_SHOW);rn UpdateWindow(hWnd);rn MSG msg;rn while(GetMessage(&msg, NULL, 0, 0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return 0;rnrnLRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)rnrn switch(uMsg)rn rn case WM_CLOSE:rn PostQuitMessage(0);rn break;rn default:rn return DefWindowProc(hwnd, uMsg, wParam, lParam);rn rn return 0;rn[/code]rn[code=C/C++]--------------------Configuration: API_01 - Win32 Debug--------------------rnLinking...rnLIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/API_01.exe : fatal error LNK1120: 1 unresolved externalsrn执行 link.exe 时出错.rnrnAPI_01.exe - 1 error(s), 0 warning(s)[/code]
错了错了错了错了 抓狂
switch(cmd) /* 入力信号種別は? */rn case SIG_KIND_SETUP_REQ :rn setup_req(trk_p); /* セットアップ要求処理 */rn break ;rn case SIG_KIND_SETUP_KAN :rn setup_kan(trk_p); /* セットアップ完了処理 */rn break ;rn rnrnSIG_KIND_SETUP_REQ 是常量
旺旺免登录超时或者拖动时出错,显示刷新再来一次
原因有很多种,如果旺旺重新登录,重新启动Windows等方法都不行。那就看看 IE 是9或者11吗?如果是的,就先卸载,然后看看是否可以,如果还不行,就再安装IE 10或者到 IE 选项里-高级,重置一下,再登录淘宝网,根据页面提示安装几个控件。 ...
遮罩层GreyBox的问题总结
最近一个项目用到了greybox,使用过程中遇到不少问题,总结一下: 1.关闭遮罩层调用的方法: My Close Button 2.弹出遮罩层: Visit Google 3.重新设置遮罩层显示部分的宽和高 parent.parent.GB_CURRENT.height=500; parent.pa...
文件都出错了..真的
这个文件上传出<em>错了</em>.不要下了这个文件上传出<em>错了</em>.不要下了
Windows 错误代码字典查询工具
Windows 错误代码字典查询工具,输入要查询的错误代码号,点击查询按钮,就可以查看到错误代码的解释,哪地方出<em>错了</em>。
错别字,你能找出几个?
爱带|白晰|爆乱|报筹|暴炸|卑却|辩析|恶耗|材华|喝采|翱游|娘两|更叠|恰商|起迄|沾辱|中裁|雕彻|陷井|劈谣|明片|梦餍|缈视|募然|蓦捐|通辑|杂踏|奕棋|疏峻|吉详|肖象|开消|撕杀|膺品|贮立|绉纹|躁热|肿涨|羁靡|描模|遨翔|振撼|呕气|亵赎|恢谐|渲泄|宣染|延申|奢糜|毗临|骠悍|永决|欧打|座落|幅射|拥带|煤碳|编篡|按磨|爆躁|蜇居|下功夫|显象管|爆发户|造事者|纹
关于使用selenium工具调用Firefox浏览器登录淘宝、京东web端的试验
** 关于使用selenium工具调用Firefox浏览器登录淘宝、京东web端的试验 ** 1、环境配置(软件安装相关知识大家可在网上查找) 以下是我使用的版本: Firefox 24.0 selenium-2.53.2 2、测试脚本 此次使用的语句都是selenium中最基础的元素定位方式 (1)首先测试使用账号密码登录淘宝web端,相关代码如下: 在此处使用driver.find_e...
【代码】第7章 动态渲染页面爬取
7.1 selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC...
100个最容易出错的字
1.按(安)装 2.甘败(拜)下风 3.自抱(暴)自弃 4.针贬(砭) 5.泊(舶)来品 6.脉博(搏) 7.松驰(弛) 8.一愁(筹)莫展 9.穿(川)流不息 10.精萃(粹) 11.重迭(叠) 12.渡(度)假村 13.防(妨)碍 14.幅(辐)射 15.一幅(副)对联 16.天翻地复(覆) 17.言简意骇(赅) 18.气慨(
asp菜单显示
出<em>错了</em>的网页和数据库
sqlserver
配置数据源时出<em>错了</em>
哎,出错了,出错了
[code=SQL]rn--我win7在SQL2000中,创建视图,一编辑语句,就报<em>错了</em>。rnrn--之前是不会的。[/code]rnrn[img=http://img.my.csdn.net/uploads/201210/24/1351071063_2691.jpg.thumb.jpg][/img]rnrn[code=SQL]rn错误应用程序名称: mmc.exe,版本: 6.1.7600.16385,时间戳: 0x4a5bc3f1rn错误模块名称: msdt70.dll,版本: 7.10.5087.0,时间戳: 0x42488cbern异常代码: 0xc0000005rn错误偏移量: 0x000ac6c2rn错误进程 ID: 0x4b4rn错误应用程序启动时间: 0x01cdb1c8ccc9c6b2rn错误应用程序路径: C:\Windows\SysWOW64\mmc.exern错误模块路径: C:\Program Files (x86)\Common Files\Microsoft Shared\MSDesigners98\msdt70.dllrn报告 ID: 15823458-1dbc-11e2-b166-005056c00008rnrn[/code]
我这个.if .endif哪出错了
invoke CreateDirectory,addr sz1,NULLrn .if eax !=0rn invoke CreateDirectory,addr sz2,NULLrn .if eax !=0rn invoke MessageBox,NULL,addr sz2,addr sz2,MB_OK rn .else rn invoke MessageBox,NULL,eax,addr szError,MB_OKrn .endifrn.endifrnrn创建文件成功的时候可以弹出个MessageBox,但是不知道创建不成功的时候不能弹出MessageBox来。
Spring配置Hibernate 配置文件哪出错了
[code=XML]rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn cn/zxap/bean/Student.hbm.xmlrn rn rn rn rn org.hibernate.dialect.SQLServerDialectrn updatern falsern falsern rn rn rn rn rn rn rn rn rnrn[/code]rnrnrn我一用rn[code=Java]rnApplicationContext applicationContext = new ClassPathXmlApplicationContext(rn "beans.xml");rn[/code]rn就报异常rn[code=XML]rnrnlog4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).rnlog4j:WARN Please initialize the log4j system properly.rnorg.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [beans.xml]; nested exception is java.lang.IllegalArgumentException: protocol = http host = nullrn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)rn at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)rn at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at cn.zxap.service.StudentServiceTest.setUpBeforeClass(StudentServiceTest.java:17)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)rn at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)rn at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)rn at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnCaused by: java.lang.IllegalArgumentException: protocol = http host = nullrn at sun.net.spi.DefaultProxySelector.select(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDocumentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)rn at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)rn ... 28 morern[/code]
请教高手!这个内部类哪出错了
package foradd;rnclass suibianrnpublic class Addition rn int s1,s2;rn public int addva1(int s1,int s2)rn return s1+s2;rn rnrnpublic class Subrationrn public int delva1(int s1,int s2)rn return s1-s2;rn rnrnpublic static void main(String[] args) rn int i;rn Addition at=new Addition();rn Subration sb=new Subration();rn rn i=sb.delva1(10,at.addva1(8,2));rn System.out.println(i);rnrn rnrn
帮我 看下我哪出错了?
[code=Java]import java.util.*;rnpublic class Test rn public static void main(String[]args)rnScanner input = new Scanner(System.in);rn rn System.out.print("请输入一个数:");rn int number = input.nextInt();rn int i = 0;rn do rn number = number /10;rn i++;rn rnrn rn while(number!=0);rn rn System.out.println("倒序:");rn for (int a = 0;a
跪求。。。。。这条SQL语句哪出错了
select * from t_daily where uid = 1 group by(time) order by(time) desc;rnrn报这个错rnMsg 8120, Level 16, State 1, Line 1rn选择列表中的列 't_daily.id' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中。
请达人帮我看看哪出错了````
#includern#define N 10rnvoid main()rnrn char arr1[5]='H','e','l','l','o';rn char arr2[5]='W','o','r','l','d';rn char arr3[N];rn int i=0,j=0;rn for(i=0;i,arr3[N]);rnrn最后的目的是要arr1 和arr2中数据合并并存在arr3中 rn在arr3中显示成helloWorld
登陆页面失败,是哪出错了
[img=http://img.my.csdn.net/uploads/201212/12/1355271027_9280.png][/img]PHP作业做叮当网有也登陆模块,输入数据库已有账号点击登录,右上方和登录模块无法显示登录账户的信息。是哪出<em>错了</em>?
请各位帮我查看哪出错了
我在建链表时出<em>错了</em>,我是刚学数据结构的,请各位帮我改改,谢谢rn#include "malloc.h"rnmain()rnstruct classrnint a;rn char b;rn struct class *next;rn ;rn struct class *p1,*p2;rn struct class *head=0;rn p1=p2=(struct class *)malloc(sizeof(struct class));rn scanf("%d %c",&p1.a,&p1.b);rn while(a!=0)rn if(head=0)rn head=p1;rn elsern p2.next=p1;rn p2=p1;rn p1=(struct class *)malloc(sizeof(struct class));rn scanf("%d %c",&p1.a,&p1.b);rn rn p2.next=0;rn free(p1);rn rnZ
哪出错了?帮我看看(初学)
建立了sharecode单元储存openform函数,在main单元中调用该函数时出现以下错误,不知问题出在哪?rnCould not compile used unit 'sharecode.pas'rnrnsharecode单元rnunit sharecode;rninterfacernusesrnforms,Classes;rnprocedure OpenForm(FormClass: TFormClass; var AForm;AOwner:TComponent=nil);rnimplementationrnprocedure OpenForm(FormClass: TFormClass; var AForm;AOwner:TComponent=nil);rn//根据窗口类名建立窗口,如果窗口存在则只激活它rnvarrn i: integer;rn Child:TForm;rnbeginrn for i := 0 to Screen.FormCount -1 dorn if Screen.Forms[i].ClassType=FormClass thenrn beginrn Child:=Screen.Forms[i];rn if Child.WindowState=wsMinimized thenrn Child.WindowState:=wsNormal;rn Child.BringToFront;rn Child.Setfocus;rn TForm(AForm):=Child;rn exit;rn end;rn Child:=TForm(FormClass.NewInstance);rn TForm(AForm):=Child;rn if not assigned(aowner) then aowner:=application;rn Child.Create(AOwner);rnend;rnend.rnrnmain单元rnunit main;rninterfacernusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, ComCtrls, ToolWin, Menus, jpeg, ExtCtrls, ImgList,sharecode;rntypern TFrmMain = class(TForm)rn CoolBar1: TCoolBar;rn StatusBar1: TStatusBar;rn MainMenu1: TMainMenu;rn N1: TMenuItem;rn NAdd: TMenuItem;rn Ndel: TMenuItem;rn Nfind: TMenuItem;rn N5: TMenuItem;rn Ndyyl: TMenuItem;rn Ndy: TMenuItem;rn N8: TMenuItem;rn Nabout: TMenuItem;rn Nexit: TMenuItem;rn ImageList1: TImageList;rn Image1: TImage;rn procedure NexitClick(Sender: TObject);rn procedure NAddClick(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnvarrn FrmMain: TFrmMain;rnimplementationrn$R *.dfmrnprocedure TFrmMain.NexitClick(Sender: TObject);rnbeginrnif application.MessageBox('确认要退出系统吗?','管理软件',MB_YESNO)=IDYES thenrnbeginrn application.Terminate;rnend;rnend;rnprocedure TFrmMain.NAddClick(Sender: TObject);rnbeginrnOpenForm(TFrmAdd,FrmAdd,self);rnend;rnend. rn
请教下这段代码哪出错了
';rnrnmysql_close($conn); rn?>
高手:这段Insert into语句哪出错了
dim conn,connstrrnconnstr="DRIVER=Microsoft Access Driver (*.mdb);DBQ="&Server.MapPath("system/data.mdb")rnset conn=server.CreateObject("adodb.connection")rnconn.open connstrrnrninsert_sql="insert into mail(yes,uname,tel,fax,email,add,content,dtime,ip_add) values(0,'"&uname&"','"&tel&"','"&fax&"','"&email&"','"&add&"','"&content&"',"&now()&",'"&Request.Servervariables("REMOTE_HOST")&"')"rnconn.Execute(insert_sql)rnrn执行不了,没报错,帮忙指点一下。
帮忙看看,哪出错了???急!!
#include rnrnchar szProgName[]="Simple";rnHINSTANCE hInst;rnLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);rnint WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,rn LPSTR lpCmdLine,int nCmdShow)rnrn HWND hWnd;rn MSG msg;rn WNDCLASS wcApp;rn wcApp.cbClsExtra=0;rn wcApp.cbWndExtra=0;rn wcApp.style=CS_HREDRAW|CS_VREDRAW;rn wcApp.lpszMenuName=NULL;rn wcApp.lpszClassName=szProgName;rn wcApp.lpfnWndProc=WndProc;rn wcApp.hInstance=hInst;rn wcApp.hIcon=0;//LoadIcon(hInstance,IDI_APPLICATION);rn wcApp.hCursor=LoadCursor(hInst,IDC_ARROW);rn wcApp.hbrBackground=(HBRUSH) GetStockObject(GRAY_BRUSH);rn if(!RegisterClass(&wcApp))rn return 0;rn hWnd=CreateWindow(szProgName,"Drawing with the Mouse",rn WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,rn CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,rn (HWND)NULL,(HMENU)NULL,hInst,(LPSTR)NULL);rn if(!hWnd)rn return 0;rn......rnrn//CreateWindow总返回0值??????????????
大侠看看这段程序哪出错了
#include rn#include rn#define ID_TIMER 1rn#define TWOPI (2 * 3.14159)rnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,rnPSTR szCmdLine, int iCmdShow)rnrnstatic TCHAR szAppName[] = TEXT ("Clock") ;rnHWND hwnd;rnMSG msg;rnWNDCLASS wndclass ;rnwndclass.style = CS_HREDRAW | CS_VREDRAW ;rnwndclass.lpfnWndProc = WndProc ;rnwndclass.cbClsExtra = 0 ;rnwndclass.cbWndExtra = 0 ;rnwndclass.hInstance = hInstance ;rnwndclass.hIcon = NULL ;rnwndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;rnwndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;rnwndclass.lpszMenuName = NULL ;rnwndclass.lpszClassName = szAppName ;rnif (!RegisterClass (&wndclass))rnrnMessageBox ( NULL, TEXT ("Program requires Windows NT!"),rnszAppName, MB_ICONERROR) ;rnreturn 0 ;rnrnhwnd = CreateWindow (szAppName, TEXT ("Analog Clock"),rnWS_OVERLAPPEDWINDOW,rnCW_USEDEFAULT, CW_USEDEFAULT,rnCW_USEDEFAULT, CW_USEDEFAULT,rnNULL, NULL, hInstance, NULL) ;rnShowWindow (hwnd, iCmdShow) ;rnUpdateWindow (hwnd) ;rnwhile (GetMessage (&msg, NULL, 0, 0))rnrnTranslateMessage (&msg) ;rnDispatchMessage (&msg) ;rnrnreturn msg.wParam ;rnrnvoid SetIsotropic (HDC hdc, int cxClient, int cyClient)rnrnSetMapMode (hdc, MM_ISOTROPIC) ;rnSetWindowExtEx (hdc, 1000, 1000, NULL) ;rnSetViewportExtEx (hdc, cxClient / 2, -cyClient / 2, NULL) ;rnSetViewportOrgEx (hdc, cxClient / 2, cyClient / 2, NULL) ;rnrnvoid RotatePoint (POINT pt[], int iNum, int iAngle)rnrnint i ;rnPOINT ptTemp ;rnfor (i = 0 ; i < iNum ; i++)rnrnptTemp.x = (int) (pt[i].x * cos (TWOPI * iAngle / 360) +rnpt[i].y * sin (TWOPI * iAngle / 360)) ;rnptTemp.y = (int) (pt[i].y * cos (TWOPI * iAngle / 360) -rnpt[i].x * sin (TWOPI * iAngle / 360)) ;rnpt[i] = ptTemp ;rnrnrnvoid DrawClock (HDC hdc)rnrnint iAngle ;rnPOINT pt[3] ;rnfor (iAngle = 0 ; iAngle < 360 ; iAngle += 6)rnrnpt[0].x = 0 ;rnpt[0].y = 900 ;rnRotatePoint (pt, 1, iAngle) ;rnpt[2].x = pt[2].y = iAngle % 5 ? 33 : 100 ;rnpt[0].x - = pt[2].x / 2 ;rnpt[0].y - = pt[2].y / 2 ;rnpt[1].x = pt[0].x + pt[2].x ;rnpt[1].y = pt[0].y + pt[2].y ;rnSelectObject (hdc, GetStockObject (BLACK_BRUSH)) ;rnEllipse (hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y) ;rnrnrnvoid DrawHands (HDC hdc, SYSTEMTIME * pst, BOOL fChange)rnrnstatic POINT pt[3][5] =0, -150, 100, 0, 0, 600, -100, 0, 0, -150,rn0, -200, 50, 0, 0, 800, -50, 0, 0,-200,rn0,0, 0, 0, 0, 0, 0, 0, 0, 800 ;rnint i, iAngle[3] ;rnPOINT ptTemp[3][5] ;rniAngle[0] = (pst->wHour * 30) % 360 + pst->wMinute / 2 ;rniAngle[1] = pst->wMinute * 6 ;rniAngle[2] = pst->wSecond * 6 ;rnmemcpy (ptTemp, pt, sizeof (pt)) ;rnfor (i = fChange ? 0 : 2 ; i < 3 ; i++)rnrnRotatePoint (ptTemp[i], 5, iAngle[i]) ;rnPolyline (hdc, ptTemp[i], 5) ;rnrnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam,LPARAM lParam)rnrnstatic int cxClient, cyClient ;rnstatic SYSTEMTIME stPrevious ;rnBOOL fChange ;rnHDC hdc ;rnPAINTSTRUCT ps ;rnSYSTEMTIME st ;rnswitch (message)rnrncase WM_CREATE :rnSetTimer (hwnd, ID_TIMER, 1000, NULL) ;rnGetLocalTime (&st) ;rnstPrevious = st ;rnreturn 0 ;rncase WM_SIZE :rncxClient = LOWORD (lParam) ;rncyClient = HIWORD (lParam) ;rnreturn 0 ;rncase WM_TIMER :rnGetLocalTime (&st) ;rnfChange = st.wHour ! = stPrevious.wHour ||rnst.wMinute ! = stPrevious.wMinute ;rnhdc = GetDC (hwnd) ;rnSetIsotropic (hdc, cxClient, cyClient) ;rnSelectObject (hdc, GetStockObject (WHITE_PEN)) ;rnDrawHands (hdc, &stPrevious, fChange) ;rnSelectObject (hdc, GetStockObject (BLACK_PEN)) ;rnDrawHands (hdc, &st, TRUE) ;rnReleaseDC (hwnd, hdc) ;rnstPrevious = st ;rnreturn 0 ;rncase WM_PAINT :rnhdc = BeginPaint (hwnd, &ps) ;rnSetIsotropic (hdc, cxClient, cyClient) ;rnDrawClock (hdc) ;rnDrawHands (hdc, &stPrevious, TRUE) ;rnEndPaint (hwnd, &ps) ;rnreturn 0 ;rncase WM_DESTROY :rnKillTimer (hwnd, ID_TIMER) ;rnPostQuitMessage (0) ;rnreturn 0 ;rnrnreturn DefWindowProc (hwnd, message, wParam, lParam) ;rnrnrnrn编译后显示:rn--------------------Configuration: zhong - Win32 Debug--------------------rnCompiling...rnzhong.crnC:\Users\lenovo\Desktop\编程\zhong.c(73) : error C2059: syntax error : '='rnC:\Users\lenovo\Desktop\编程\zhong.c(74) : error C2059: syntax error : '='rnC:\Users\lenovo\Desktop\编程\zhong.c(119) : error C2143: syntax error : missing ';' before '!'rnC:\Users\lenovo\Desktop\编程\zhong.c(119) : error C2059: syntax error : '='rn执行 cl.exe 时出错.rnrnzhong.obj - 1 error(s), 0 warning(s)rn
猴子选大王 不知道哪出错了
//单链表类型及其基本操作函数的定义rn#define OK 1rn#define ERROR 0rn#define OVERFLOW -2rn#define TRUE 1rn#define FALSE 0rntypedef int Status;rn#define OVERFLOW -2rn#define TRUE 1rn#include rn#include rn#include rntypedef int LElemType;rntypedef struct Lnodern LElemType data;rn struct Lnode *next;rn *LinkedList; //LinkedList为单链表类型rnrnvoid CreatList_l(LinkedList &L, int n) //正序创建单链表rn LinkedList p,q;rn int i;rn L=q=(LinkedList)malloc(sizeof(struct Lnode));rn L->data=1; rn for(i=2;inext=(LinkedList)malloc(sizeof(struct Lnode));rn q->data=i; rn q=q->next;rn rn q->next=L;rnrnrn//循环单链表类型及其基本操作函数的定义rnLElemType Count(LinkedList &L,int m,int n)rnrn int i,j;rn LinkedList p,q;rn p=L;rn q=p->next;rn for(j=1;jnext;rn q=q->next;rn rn p->next=q->next;rn p=q->next;rn free(q);rn q=p->next; rn rn return(p->data); rn rnint main()rn rn int n,m;rn int king; rn LinkedList L;rn LElemType data;rn printf("请输入猴子的数目m:"); scanf("%d",&m);rn printf("输入整数n:"); scanf("%d",&n);rn CreatList_l(L,m);rn king=Count(L,m,n);rn printf("猴子大王是:%d!\n",king);rn system("pause");rn return 0;rnrnrnrnrn测试的时候 输入m = 3 ;n = 2rn会出现溢出rn应该在哪个地方怎么修改rn请高人指点
请问这个SQL语句哪出错了
CREATE PROCEDURE fx_wholern @Out_No varchar(10)rn  ASrn --插入Fx_wholesale_2011rn  insert into FxStorehouse.Fx_wholesaleReg_2011rn  select * FROM Fx.Fx_wholesaleReg where Fx.Fx_wholesaleReg.Out_No = @Out_Norn --插入Fx_outlist——2011rn insert into FxStorehouse.Fx_OutList_2011rn SELECT * from Fx.Fx_OutList inner join on Fx.Fx_wholesaleReg rnwhere Fx.Fx_OutList.Out_No = Fx.Fx_wholesaleReg.Out_No AND rnrnFx.Fx_wholesaleReg.Out_No = @Out_Norn
大家看看,是哪出错了
private void createText()rn try rn ResultSetMetaData rsmd;rn rsmd = rowset.getMetaData() ;rn int textCount = rsmd.getColumnCount() ;rn String textStr;rn for (int i = 1; i <= textCount; i++ )rn JLabel jLabel = new JLabel();rn jLabel.setText(rsmd.getColumnName(i) );rn jPanelText.add(jLabel, null);rn textStr = String.valueOf(rowset.getObject(i));rn JTextField jTextField1 = new JTextField();rn jTextField1.setText(textStr);rn jPanelText.add(jTextField1, null);rn rn catch (Exception e )e.printStackTrace() ;rn rnrn总是提示不能这样返回rowset对象
高手看我的程序是哪出错了!!
问题提示参数错误,请帮我看看哪出<em>错了</em>rnrnusing System;rnusing System.Drawing;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Windows.Forms;rnusing System.IO;rnusing System.Xml;rnusing MSXML2;rnusing System.Net ;rnusing System.Net.Sockets ;rnusing System.Text ;rnnamespace xmlrnrn /// rn /// Form1 的摘要说明。rn /// rn public class Form1 : System.Windows.Forms.Formrn rn private System.Windows.Forms.Button button1;rn private System.Windows.Forms.Label label1;rn    private System.Xml.XmlDocument mXmlDoc;rn   // private System.Xml.XmlDocument doc;rn private System.Windows.Forms.OpenFileDialog openFileDialog1;rn private System.Windows.Forms.SaveFileDialog saveFileDialog1;rn private System.Windows.Forms.Button button3;rn /// rn /// 必需的设计器变量。rn /// rn private System.ComponentModel.Container components = null;rnrn public Form1()rn rn //rn // Windows 窗体设计器支持所必需的rn //rn InitializeComponent();rnrn //rn // TODO: 在 InitializeComponent 调用后添加任何构造函数代码rn //rn rnrn /// rn /// 清理所有正在使用的资源。rn /// rn protected override void Dispose( bool disposing )rn rn if( disposing )rn rn if(components != null)rn rn components.Dispose();rn rn rn base.Dispose( disposing );rn rnrn #region Windows 窗体设计器生成的代码rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.button1 = new System.Windows.Forms.Button();rn this.label1 = new System.Windows.Forms.Label();rn this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();rn this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();rn this.button3 = new System.Windows.Forms.Button();rn this.SuspendLayout();rn // rn // button1rn // rn this.button1.Location = new System.Drawing.Point(32, 40);rn this.button1.Name = "button1";rn this.button1.Size = new System.Drawing.Size(72, 40);rn this.button1.TabIndex = 0;rn this.button1.Text = "加载doc";rn this.button1.Click += new System.EventHandler(this.button1_Click);rn // rn // label1rn // rn this.label1.Location = new System.Drawing.Point(160, 24);rn this.label1.Name = "label1";rn this.label1.Size = new System.Drawing.Size(280, 280);rn this.label1.TabIndex = 2;rn this.label1.Text = "状态";rn // rn // button3rn // rn this.button3.Location = new System.Drawing.Point(24, 176);rn this.button3.Name = "button3";rn this.button3.Size = new System.Drawing.Size(104, 32);rn this.button3.TabIndex = 3;rn this.button3.Text = "上传";rn this.button3.Click += new System.EventHandler(this.button3_Click);rn // rn // Form1rn // rn this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);rn this.ClientSize = new System.Drawing.Size(456, 309);rn this.Controls.Add(this.button3);rn this.Controls.Add(this.label1);rn this.Controls.Add(this.button1);rn this.Name = "Form1";rn this.Text = "Form1";rn this.Closed += new System.EventHandler(this.Form1_Closed);rn this.ResumeLayout(false);rnrn rn #endregionrn static void Main() rn rn Application.Run(new Form1());rn rnrn private void button1_Click(object sender, System.EventArgs e)rn rn string strFileName;rn openFileDialog1.Filter = "Office Documents(*.doc, *.xls, *.ppt)|*.doc;*.xls;*.ppt" ;rn openFileDialog1.FilterIndex = 1;rn openFileDialog1.FileName = "";rn openFileDialog1.ShowDialog();rn strFileName = openFileDialog1.FileName;rn if(strFileName.Length != 0)rn rn System.IO.FileStream inFile=new FileStream(strFileName,System.IO.FileMode.Open,System.IO.FileAccess.Read);rn byte[] binaryData=new byte [inFile.Length];rn inFile.Read(binaryData, 0,(int)inFile.Length);rn string mStr=Convert.ToBase64String(binaryData);rn string hh=mStr;rn mXmlDoc=new System.Xml.XmlDocument();rn mStr=string.Format ("0",mStr);rn mXmlDoc.LoadXml( mStr);rn MessageBox.Show("加载成功");rn rnrn rnrnrn private void Form1_Closed(object sender, System.EventArgs e)rn rn mXmlDoc=null;rn rnrn private void button3_Click(object sender, System.EventArgs e)rn rn MSXML2.XMLHTTPClass xmlhttp = new MSXML2.XMLHTTPClass();rn rn tryrn rnrn xmlhttp.open("post", "http://192.168.9.14/save.asp", false, null, null);rn rn xmlhttp.send(mXmlDoc);rn if(xmlhttp.status / 100 ==2) //200, 201, 202, 203, 204, 205, 206rn rn MessageBox.Show("成功");rnrn byte[] b = (byte[])xmlhttp.responseBody;rn rn string s = System.Text.ASCIIEncoding.UTF8.GetString(b, 0, b.Length);;rn rn label1.Text=s;rn rnrnrn rn catch (Exception ee)rn rn // 检测设置最后的错误代码和描述rnrn // 检查zXmlHttp的状态rn MessageBox.Show(ee.Message,"错误!!");rn rn rnrn rnrnrn rnrnrnrnsave.asp代码:rnrnrn ok!
帮我看下数据库代码哪出错了
procedure TForm1.Button1Click(Sender: TObject);rnrnbeginrnrnrn ADOQuery1.Close;rnADOQuery1.SQL.Create;rnADOQuery1.SQL.Add('insert into error_table(id,error_id) values(:str,:str1)');rnADOQuery1.Parameters.ParamByName('str').value:=strtoint(edit1.Text);rnADOQuery1.Parameters.ParamByName('str1').value:=edit2.Text;rnADOQuery1.ExecSQL;rnADOQuery1.Active:=false;rnend;rnrn上面的代码,执持一次可以,执行二次的时候就出现"不正常的定义参数对象。提供了不一致或不完整的信息"rn
帮我看下 OleDbDataReader 哪出错了
using System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.OleDb;rnrnpublic partial class vi: System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rn string idd = Request.QueryString["ID"];rn //连接rn string dbname = System.Web.HttpContext.Current.Server.MapPath("App_Data/dbdb.accdb");rn string connStr = "PROVIDER=microsoft.ACE.oledb.12.0;Data Source=" + dbname;rn OleDbConnection conn = new OleDbConnection(connStr);rn conn.Open();rn //控制rn OleDbCommand cmd = new OleDbCommand();rn cmd.Connection = conn;rn cmd.CommandText = "select * from chanpin where idd=id";rn //数据返回rn OleDbDataReader mydata = cmd.ExecuteReader(); ------- 至少一个参数没有被指定值。rn while (mydata.Read())rn rn Label1.Text = mydata["cname"].ToString();rn rn rn
一个简单的问题,不知道哪出错了
以前都是做java的,没碰到过这种问题,就是一般c++中声明定义放.h中,实现在.cpp。但是我自己做了如下实验却不行rnrntmp.h:rnclass tstClsrnrn public:rn void myDisplay();rnrnrntmp.cpp:rn#include "tmp.h"rnrnvoid tstCls::myDisplay()rnrn cout<<
帮忙看看哪出错了(C语言)
#include rnstruct studentrnint num;rnchar name[30];rnchar sex;rnfloat Chinese;rnfloat Math;rnfloat English;rnstu[4]=2007480001,"hehe",'F',77.5,120.5,14.5,rn2007480002,"haha",'M',13.5,10.5,1190.5,rn2007480003,"dede",'F',10.5,90.5,119.5,;rnvoid main()rnrn printf("********全班最好成绩*********\n\n");rnif ((stu[1].Chinese+stu[1].Math+stu[1].English)>(stu[2].Chinese+stu[2].Math+stu[2].English))rn stu[4]=stu[1];rn elsern stu[4]=stu[2]; rn if ((stu[0].Chinese+stu[0].Math+stu[0].English)>(stu[4].Chinese+stu[4].Math+stu[4].English))rn printf("第一名是 %s",stu[0].name);rn elsern printf("第一名是 %s\n\n",stu[4].name);rnrnrn printf("********及格情况*********\n\n");rnrnint j,c=0,m=0,e=0;rnrn for(int i=0;i,stu[2].name,(stu[2].Chinese+stu[2].Math+stu[2].English),(stu[2].Chinese+stu[2].Math+stu[2].English)/3.0);rnrnrnrnrnrn这是用C语言编写的一程序,统计30个学生3门课的成绩信息rn要求:rn能按总分,数学成绩,英语成绩,计算机成绩分别排序rn能分别统计数学,英语,计算机中不及格人数rn能按学号查找学生,并显示该学生信息。
这段jsp代码哪出错了???
rnrnrnrnrn rn rn rn My JSP 'message.jsp' starting pagern rn rn rn rn rn rn rnrn rn rnrn rn rn 我的短消息rn rn rn rn rn rn rn rn rnrn---------------------------------------------------------------------下面是报错rnAn error occurred at line: 33 in the jsp file: /message.jsprnResultSet cannot be resolved to a typern30: + userName + "'");rn31: user_rs.next();rn32: String id = user_rs.getString("id");rn33: ResultSet message_rs = connrn34: .executeQuery("select count(id) as count from message where `to` ="rn35: + id + " and `new` = 1");rn36: message_rs.next();rnrnrnAn error occurred at line: 44 in the jsp file: /message.jsprnResultSet cannot be resolved to a typern41: 鎴戠殑鐭秷鎭?rn42: rn43: to complete ClassBodyrnrn
快来帮忙,这段程序哪出错了!!!
Private Sub cmdOK_Click()rn Dim rs As Recordsetrn Dim db As Databasern Dim ws As Workspacern Set db = OpenDatabase("C:\Program Files\Microsoft Visual Studio\VB98\销售管理\userlist.mdb")rn Set rs = db.OpenRecordset("select * from userlist where username='& txtusername.text &'", dbOpenDynaset)rn If rs.NoMatch Thenrn MsgBox "无此用户"rn Elsern If rs.fields("password") = txtPassword.Text Thenrn LoginSucceeded = Truern Me.Hidern MsgBox "登录成功"rn Elsern MsgBox "口令错误"rn End Ifrn End IfrnEnd Subrn提示,无此用户,请各位大侠指教
这种问题到底是哪出错了
因为在后台中修改了一个栏目,刷新后发现前台有这样的提示rn[img=https://img-bbs.csdn.net/upload/201402/22/1393047727_90710.jpg][/img]rn查了一下提示文件的1373行rn[img=https://img-bbs.csdn.net/upload/201402/22/1393047809_822726.jpg][/img]rn没发现哪有错误呢,真是让人感觉手足无措!
看下哪出错了,我找不出来啊
#includern#includern#includernint main()rnrn FILE *fp;rn char ch,a[1000],b[1000];rn int i=0,max=0;rn fp=fopen("3.txt","r");rn if(fp==NULL)rn rn printf("cannot open this file\n");rn exit(-1);rn rn while((ch=fgetc(fp))!='\n')rn rn a[i]=ch;rn i++;rn rn i=0;rn while((ch=fgetc(fp))!=EOF)rn rn if(ch!='\n')rn rn b[i]=ch;rn i++;rn rn if(strlen(a)
各位帮忙看看是哪出错了。。。。
用Java 写一个乘法表如图所示,要求part one 使用一个while循环 part two 使用for嵌套循环rn 1 2 3 4 5 6 7 8 9rn1 1 2 3 4 5 6 7 8 9rn2 2 4 6 8 10 12 14 16 18rn3 3 6 9 12 15 18 21 24 27rn4 4 8 12 16 20 24 28 32 36rn5 5....rn6 ....rn7 ....rn8 ....rn9 ...rn我已经写了一个不过那上下对不齐。。。rn各位帮我看看是哪出<em>错了</em>。。。。rnpublic class MultiTestrn public static void main(String[] args)rn int i = 1,j = 1;rn System.out.print(" MultiTest Table "+"\n");rn System.out.print("---------------------"+"\n");rn System.out.print(" ");rn while(i < 9;i++)rn rn System.out.println(i);rn for(j = 1;j );rn rn */rn rn
大家帮我看看是哪出错了
rne&&lnA[i]!=9) rn rnlnC.cySetAt(i,lnA[i]+1); rnb_incre=false; rn rnelse if(b_incre&&lnA[i]==9) rn rnlnC.cySetAt(i,0); rn rnelse rn rnlnC.cySetAt(i,lnA[i]); rn rn rnreturn lnC; rn rnifstream&operator>>(ifstream&cyIn,cyLongNumber&ln) rn rnstring str_tmp; rnint int_tmp=-1; rngetline(cyIn,str_tmp,'\n'); rnln.cyDigital=str_tmp.length(); rnln.cyNumber=new char[ln.cyDigital]; rnfor(int i=ln.cyDigital-1;i>=0;i--) rn rnln.cySetAt(++int_tmp,str_tmp[i]); rn rnreturn cyIn; rn rnofstream&operator<<<>A; rnfin>>B; rncout<<
一个题目,不知道哪出错了,见鬼!!!
http://acm.tju.edu.cn/toj/showp2819.htmlrnrnrnrn以下是我写的代码,用提供的数据验算没有错,但是提交的时候就wa,麻烦高手指点指点!!!!rnrnrnrn#includernrnusing namespace std;rnrnint path[1001][1001];rnint main()rnrn int i,j,k,h;rn rn int n;rn cin>>n;rn rn int S,T;rn int N,M;rn for(i=1;i>N>>M;rn for(k=1;k>S>>T;rn for(j=1;j>a>>b>>length;rn path[a][b]=length;rn path[b][a]=length;rn rn for(h=1;h<=N;h++)rn rn if(h==S||h==T) continue;rn if(path[S][h]!=-1&&path[h][T]!=-1&&(path[S][h]+path[h][T]
帮我看看这哪出错了
#include "stdio.h"//程序是输入几个学生数据并输出!rn#define N 2 rn#define M 3rnstruct student //定义一个学生类型的结构体变量rnrn int ID;//学号rn char name[10];rn int score[3];//三科成绩rn;rnstruct student stu[N];rnvoid main() rn rn int i,j;rn void input();rn input();// 定义为外部变量,这里调用input是否将数据写入了并可为下个函数调用,rn printf("output the dates:\n");//整个程序编译不报错,但程序不运行,定住了rn for(i=0;i
我调用max_element哪出错了
#include rn#include rn#include rn#include rnusing namespace std; rnclass student rn rnpublic: rnstudent() rnstudent(string name,int age) rn rnthis->name=name; rnthis->age; rn rnstring GetName() rn return name; rnint GetAge() rn return age; rnprivate: rnstring name; rnint age; rn; rnbool comp(const student &s1,const student &s2) rn rnreturn s1.GetAge() vs; rnvs.push_back(student("zhang",19)); rnvs.push_back(student("wang",12)); rnvs.push_back(student("li",21)); rnvs.push_back(student("sun",6)); rncout<<
大家帮我看看哪出错了.
[img=http://home.phpchina.com/attachment/200902/8/65951_1234081552WBbj.jpg][/img]rnrn[code=C/C++]rn#include rnusing namespace std ;rnrnrnint main ()rnrn int i = 1;rn double arctan( double x );rn double power( double x,int i );rn cout << "The PI Is" << 16 * arctan( 0.2 ) - 4 * arctan( 1/239 ) << endl ;rn system ( "pause" );rnrnrndouble power( double x, int i )rnrn double n = 1 ;rn while ( i > 0)rn rn n = n * x;rn i -- ;rn rn return n ;rnrnrndouble arctan ( double x )rnrn int j = 2;rn int i = 1;rn double result ;rn while ( ( power( x,i ) / i) > 10E-15 )rn rn result += (-1) * j * power( x, i ) * ( 1 / i ) ;rn i = i + 2;rn j++;rn rn return result ;rnrnrnrn[/code]
jsp页面出现乱码,不知道哪出错了
rn rn rn rnrnrnrn rn Insert title herernrnrn rn //输入框rnrnrnrnrnrn在输入框中输入“你好”rnString name=request.getParameter("name");rnout.println(name);//name出现乱码且输出为ÄãºÃ rnrnrn
各位达人帮我看看哪出错了
错误信息:Unhandled exception at 0x40042ef0 in JYC(W).exe: 0xC00000FD: Stack overflow.rn代码:rn[code=C/C++]rnbool CJYCWApp::SendData(long nPort,tagJycDataInfo &m_SendData,tagJycDataInfo &m_RecvData )rnrn ::ZeroMemory(&m_RecvData,sizeof(m_RecvData));rn if(nPort==1)rn rn int nLength=0;rn unsigned char *pSendData=DataToChar(m_SendData,nLength);rn g_strRecvData[0].Empty();rn g_myPort[0].Activate();rn g_bRecvData[0]=FALSE;rn[color=#FF6600] g_myPort[0].WritePort(pSendData,nLength);[/color]rn int ncount=0;rn while(g_bRecvData[0]==FALSE)rn rn if (ncount<80)rn rn Sleep(3);rn ncount++;rn continue;rn rn elsern //超时rn rn rn g_bRecvData[0]=FALSE;rn break;rn delete pSendData;rn return FALSE;rn rnrn rnrn if (TRUE==HexToRS_Data(g_strRecvData[0],m_RecvData))rn rn rn if (m_RecvData.cCommand==m_SendData.cCommand && m_RecvData.cAddr==m_SendData.cAddr)rn rn g_bRecvData[0]=FALSE;rn delete pSendData;rn return TRUE;rn rn elsern //收到的数据非此次所需rn rn rn g_bRecvData[0]=FALSE;rn delete pSendData;rn return false;rn rnrn rn elsern rn g_bRecvData[0]=FALSE;rn delete pSendData;rn return false;rn rn delete pSendData;rn return TRUE;rn rn rnrn[/code]
求问哪出错了,急!
#include "stdio.h"rn#include "string.h"rn#include "stdlib.h"rnmain()rnrnint as[255][255],to=0,ta=0,ass[255],mo[255][255],i2,wb[255];rnint fun(char x);rnint width=80;rnchar align='l',fonts[20],calgphy2[20]='c','a','l','g','p','h','y','2',alligator3[20]='a','l','l','i','g','a','t','o','r','3';rnvoid parse_para(int argc,char *argv[]) //命令行参数rnrn int i;23;rn for(int i=1;i='0')rn rn return (int)x-48+52;rn rn else if(x>='a'&&x='A'&&x=(width/10))rn bull=0;rn if(!memcmp(f,"quit",4))rn exit(0);rn for(sf=f,ta=0;*sf;)rn rn if(*sf!=' ')rn rn if((ass[ta])%((width-1)/10)==0&&(ass[ta]!=0))rn rn ta++;rn rn as[ta][(ass[ta])++]=fun(*sf);rn sf++;rn rn else if(*sf==' ')rn rn while(*sf==' ')rn rn sf++;rn rn ta++;rn rn rn if(bull==1) rn rn for(m=0;m<=ta;m++)rn rn for(b=0;b
数组倒置的递归算法 不知道哪出错了
public class ReverseArray n public static void main(String[] args) n //定义数组n int a[] = 2,3,4,5,6;n n reverse(a,0,a.length-1);n //遍历输出n for(int i = 0;i < a.length;i++) n System.out.print(a[i]);n n n //做递归n public static void reverse(int a[],int i,int j) n if(j > i) n Swap(a,a[i],a[j]);n reverse(a,i+1,j-1);n n n //数组中两个数交换n private static void Swap(int a[],int l,int k) n // TODO Auto-generated method stubn int temp = a[l];n a[l] = a[k];n a[k] = temp;n n nnn输出 数组越界 望大家教教
这样导入XML文件,哪出错了啊???
rnrnrn rn 无标题文档rn rnrnrnrnrnrnrn
这段MFC小代码哪出错了
这是孙鑫老师教程的一段,我的VC6.0怎么总是有错rn大家看看我错在哪了rn [code=C/C++]int num1,num2,num3;rn char ch1[10],ch2[10],ch3[10];rnrn GetDlgItem(IDC_EDIT1)->GetWindowTest(ch1,10);rn GetDlgItem(IDC_EDIT2)->GetWindowTest(ch2,10);rnrn num1=atoi(ch1);rn num2=atoi(ch2);rn num3=num1+num2;rn itoa(num3,ch3,10);rnrn GetDlgItem(IDC_EDIT3)->SetWindowTest(ch3);rnrn//error C2039: 'GetWindowTest' : is not a member of 'CWnd'rn//'SetWindowTest' : is not a member of 'CWnd'[/code]
关于构造函数,到底哪出错了
Class COnernrn public:rn char *m_psz;rn int i;rnrn public:rn COne()rn rn m_psz = NULL;rn rn ... rnrnrnmain()rnrn map Mymap;rn COne one;rn one.m_psz ="ABCDEFGH" ;rn one.i = 0;rnrn Mymap.insert(map::value_type(0,one));rn // 这个程序可以运行,但是运行到最后就出现Access Vialation 错误。rn // 到底哪出<em>错了</em>?rnrn
C++一题(到底哪出错了)
#include rnrnrnint a[],n;rn#include rnvoid enter(int a[]);rnvoid pai(int a[],int n);rnfloat add(int a[]);rnrnvoid enter(int a[])rncout<<>a[i];rncout<<>n;rnenter(a);rncout<>q;rnif (q=='y')rngoto loop;rn rnrn
帮我看看我的服务程序哪出错了
帮我看看我的服务示例程序哪出<em>错了</em>,为什么不会启动,我也用SamplePrivDeveloper.pfx签了名,生成的DLL有数字签名,名称为TEST USE ONLY - Sample Privileged Developer - Windows Mobile SDKrn服务程序的签名也是用mapirule一样的签名方式吗?我的dll如果导出给我的程序用是可以的,求高人指点rnrn按要求改写了注册表rn// [HKEY_LOCAL_MACHINE\Services\MyService]rn// "Dll"="MyService.dll"rn// "Order"=dword:8rn// "Keep"=dword:1rn// "Prefix"="SRV"rn// "Index"=dword:0rn// "Context"=dword:0rn// "DisplayName"="Sample Service"rn// "Description"="This sample service makes your device beep about every 10 seconds."rn服务函数的入口rnMYSERVICE_API DWORD SRV_Init(DWORD dwData)rnrn MessageBox(NULL,_T("ffff"),_T("ffff"),MB_OK);rn MessageBeep(0xFFFFFFFF);rn thread = CreateThread(NULL,0,MyControllingFunction,0,0,0);rn return 1; rnrn//Application specific stuffrn//定时rnvoid CALLBACK MyTimerProc(rn HWND hWnd, // handle of CWnd that called SetTimerrn UINT nMsg, // WM_TIMERrn UINT nIDEvent, // timer identificationrn DWORD dwTime // system timern )rnrn //Beep every time the timer is triggered.rn MessageBeep(0xFFFFFFFF);rn;rnrn//rnDWORD WINAPI MyControllingFunction( LPVOID pParam )rnrnrn // This will call MyTimerProc about every seconds. It might take longerrn // as services run in the background. In this specific case MyTimerProc willrn // produce a beep about every ten seconds.rn m_nTimer = SetTimer(0, 0,1000, MyTimerProc); rn rn MSG msg;rn while (GetMessage(&msg, 0, 0, 0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return 0;rnrn
帮忙看看这个存储过程哪出错了
set ANSI_NULLS ONrnset QUOTED_IDENTIFIER ONrngornrnALTER procedure [dbo].[sp_userApplicationList_Update_Sort_InsertBefore]rn @userId int,rn @currentId int,rn @insertId intrnasrndeclare @tempCurrentSort intrndeclare @tempInsertSort intrndeclare @strSelectCurrentId nvarchar(500)rndeclare @strSelectInsertId nvarchar(500)rndeclare @strUpdate1 nvarchar(500)rndeclare @strUpdate2 nvarchar(500)rnrnset @strSelectCurrentId = 'select @tempCurrentSort = sort rnfrom userApplicationList rnwhere userId = @userId rnand userApplicationLeftId = @currentId'rnrnset @strSelectInsertId = 'select @tempInsertSort = sort rnfrom userApplicationList rnwhere userId = @userId rnand userApplicationLeftId = @insertId'rnrnset @strUpdate1 = 'update userApplicationList rnset sort = (select sort from userApplicationList where userId = @userId and userApplicationLeftId = @insertId)rnwhere userId = @userId and userApplicationLeftId = @currentId'rnrnexec sp_executesql @strSelectCurrentId, N'@tempCurrentSort int out,@userId int,@currentId int',@tempCurrentSort out,@userId,@currentIdrnrnexec sp_executesql @strSelectInsertId, N'@tempInsertSort int out,@userId int,@insertId int',@tempInsertSort out,@userId,@insertIdrnrnif @tempCurrentSort < @strSelectInsertIdrnbeginrn set @strUpdate2 = 'update userApplicationList set sort = sort - 1 where userId = ' + @userId + ' and userApplicationLeftId ' + @strSelectCurrentIdrnendrnelsernbeginrn set @strUpdate2 = 'update userApplicationList set sort = sort + 1 where userId = ' + @userId + ' and userApplicationLeftId ' + @strSelectInsertIdrnendrnrnexec sp_executesql @strUpdate1rnexec sp_executesql @strUpdate2rnrnrnrnrn报错提示rn消息 245,级别 16,状态 1,过程 sp_userApplicationList_Update_Sort_InsertBefore,第 36 行rn在将 nvarchar 值 'select @tempInsertSort = sort rnfrom userApplicationList rnwhere userId = @userId rnand userApplicationLeftId = @insertId' 转换成数据类型 int 时失败。rnrn这个错误怎么改啊谢谢了,rn初学者,望高手指点下啊~~~rn
强连通分量及缩点tarjan算法解析
强连通分量: 简言之 就是找环(每条边只走一次,两两可达) 孤立的一个点也是一个连通分量   使用tarjan算法 在嵌套的多个环中优先得到最大环( 最小环就是每个孤立点)   定义: int Time, DFN[N], Low[N]; DFN[i]表示 遍历到 i 点时是第几次dfs Low[u] 表示 以u点为父节点的 子树 能连接到 [栈中] 最上端的点   int
android4高级编程(中文)下载
android4高级编程,全中文版,英文原著中文译版 相关下载链接:[url=//download.csdn.net/download/gongertouji1992/6867607?utm_source=bbsseo]//download.csdn.net/download/gongertouji1992/6867607?utm_source=bbsseo[/url]
com.google.android.maps.jar下载
网上有些包要分,而且还是DEX没反编译过的。我就下了个反编译放上来分享下 相关下载链接:[url=//download.csdn.net/download/koala_boy/6882249?utm_source=bbsseo]//download.csdn.net/download/koala_boy/6882249?utm_source=bbsseo[/url]
黑寡妇测试黑寡妇测试1.0下载
黑寡妇测试1.0黑寡妇测试1.0黑寡妇测试1.0黑寡妇测试1.0 相关下载链接:[url=//download.csdn.net/download/yfm916/2252211?utm_source=bbsseo]//download.csdn.net/download/yfm916/2252211?utm_source=bbsseo[/url]
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 哪学python 到哪学习大数据
我们是很有底线的