log4net生成日志失败?到底哪里出错了 [问题点数:20分,结帖人bineifeilie18]

Bbs1
本版专家分:0
结帖率 86.36%
Bbs1
本版专家分:20
Blank
GitHub 绑定GitHub第三方账户获取
Bbs7
本版专家分:29359
版主
Blank
优秀版主 2016年10月优秀大版主
恭喜您,在2016年6月份获得优秀版主称号
恭喜您,在2016年4月份获得优秀版主称号
恭喜您,在2016年5月份获得优秀版主称号
恭喜您,在2016年8月份获得优秀版主称号
2015年9月优秀大版主
2015年5月优秀大版主
2014年11月论坛优秀版主
Blank
银牌 2019年2月 总版技术专家分月排行榜第二
Blank
微软MVP 2015年4月 荣获微软MVP称号
2014年4月 荣获微软MVP称号
Blank
红花 2019年2月 企业IT大版内专家分月排行榜第一
2014年12月 企业软件大版内专家分月排行榜第一
2014年11月 企业软件大版内专家分月排行榜第一
2014年7月 企业软件大版内专家分月排行榜第一
2011年10月 企业开发大版内专家分月排行榜第一
2011年5月 企业开发大版内专家分月排行榜第一
2011年3月 企业开发大版内专家分月排行榜第一
2010年12月 企业开发大版内专家分月排行榜第一
2010年11月 企业开发大版内专家分月排行榜第一
2010年9月 企业开发大版内专家分月排行榜第一
2010年8月 企业开发大版内专家分月排行榜第一
2010年7月 企业开发大版内专家分月排行榜第一
2010年6月 企业开发大版内专家分月排行榜第一
2010年5月 企业开发大版内专家分月排行榜第一
Bbs1
本版专家分:0
Bbs2
本版专家分:335
Bbs1
本版专家分:0
Bbs9
本版专家分:56451
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2019年8月 .NET技术大版内专家分月排行榜第三
2019年6月 .NET技术大版内专家分月排行榜第三
2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
帮忙看看到底哪里出错了....
做了一个小练习,想要每次鼠标滑过菜单项时,菜单项的背景色改变一下。为什么没变化呢....代码如下:rnrnrnrn 练习rn rnrn rn rnrnrnrnrn rn rn Arn Brn Crn D rn Ernrnrnrn
求解决 到底哪里出错
“FamilyFinance.DBHelper”的类型初始值设定项引发异常。
ORACLE中函数到底哪里出错了?
create or replace function concat2(str1 in varchar2,str2 in varchar2)rn return String is Result String;rnbeginrn if (str1 is null) or (str2 is null) thenrn Result := '';rn elsern beginrn Result=concat(concat(str1,','),str2);rn end;rn rn end if;rn return(Result);rnend concat5;rn
搜寻到底哪里出错了! 帮忙看看!
我写了datamodule<em>4</em>.ClientDataSet1.Locate('Category',VarArrayOf([edit2.Text]),[loCaseInsensitive,loPartialKey]);rn 运行之后为什么还会出现[Error] Unit3.pas(56): Undeclared identifier: 'loCaseInsensitive'rn<em>到底</em>问题出现在那里啊!
这段代码到底哪里出错了?
我写了一个JS文件,而且在HTML文件里也正确应用了这个JS文件,可是IE老是提示有错误,详细错误是指我的JS文件里的第10行第一个字符有错误。可是我发现我的JS文件里第10行第一个字符并没有错啊,因为我每行都是document.write语句,而且我可以保证没有拼写错误或漏写分号,这是怎么回事啊?
帮忙看看模板类到底哪里出错
#include rn#include rnrnusing namespace std;rntemplaternvoid rtrim(basic_string& s,T c)rnrn if(s.empty())rn return;rn rn typename basic_string::iterator p;rn for(p=s.end();p!=s.begin()&&*--p==c;);rn if(*p!=c)rn p++;rn s.erase(p,s.end());rnrnint main()rnrn string s="Great!!!!!";rn wstring ws=L"super!!!!";rn rn rtrim(s,'!');rn rtrim(ws,L"!");rn rn cout<
图片上传服务器到底哪里出错
public void SavePic()rn rn Boolean fileOk = false;rn string path = Server.MapPath("picture/pic_letter/");rn if (FileUpload1.HasFile)rn rn string fileE = Path.GetExtension(FileUpload1.FileName).ToLower();rn string[] a = ".gif", ".bmp", ".jpg", ".pdf", ".imf" ;rn for (int i = 0; i < a.Length; i++)rn rn if (fileE == a[i])rn rn fileOk = true;rn break;rn rn rn if (fileOk)rn rn rn tryrn rn FileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);rn Response.Write(" ");rn rn catchrn rn Response.Write(" ");rn rn rn elsern rn Response.Write(" ");rn return;rn rnrn rn elsern rn Response.Write(" ");rn return;rn rnrn之前用input《type=file》可以上传rn现在改成FileUpload方法 为什么就是没见到上传的文件,也没报错。rnrn还有rnFileUpload1.SaveAs(path + FileUpload1.FileName);rnFileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);rn这两句有什么区别rnrn
makefile到底哪里出错了??求大神
rnmakefile文件rn[code=text] target: main.o libBasicUsageEnvironment.arn g++ -o target main.o libBasicUsageEnvironment.arnrn rnrnmain.o : test.cpp rn g++ -I/home/qifei/桌面/live555_test/live -I/home/qifei/桌面/live555_test/live/groupsock/include \rn -I/home/qifei/桌面/live555_test/live/UsageEnvironment/include -I/home/qifei/桌面/live555_test/live/BasicUsageEnvironment/include \rn -I/home/qifei/桌面/live555_test/live/liveMedia/include test.cpp[/code]rnrn出现错误:rnrntest.cpp:(.text+0x12f): undefined reference to `BasicTaskScheduler::createNew(unsigned int)'rn底下还有很多这样的错误。求大神们不吝赐教。
到底哪里出错了,抓狂哇~~~~~~
下面这段不知道哪里错了,在家里可以用,拿到公司怎么测都不行:( rnif ($submit!='')这里似乎无效。rnrnrun())rn rn echo "上传<em>失败</em>,原因:".$upload->errmsg();rn rnrnecho "$submit";rn?>rnrnrn 文件上传rn rn rnrnrnrn rn rn rn rn rn rn rn rnrnrn
sql语句到底哪里出错了啊
CString sqlStr=CString(_T("select* where userName='") ) +m_strUserName+CString(_T("' and pass='"))+m_strPassword+CString(_T("' from userInfo"));rnrnrn rnrnrn调试后,发现 sqlStr的值为:rnsqlStr "select* where userName='admin' and pass='admin' from userInfo" ATL::CStringT > >rnrnrnrnuserInfo表为:rnrnuserName passrnrnIDispatch error#3092 估计是sql语法的问题,可是我的语法没有错啊rnrnQuery中的关键代码:rnrnm_pRes->Open((_bstr_t)sql,m_pConn.GetInterfacePtr(), adOpenDynamic, adLockOptimistic, adCmdText); //执行sqlrnrn
php 总是查询数据失败到底哪里错了??
function ax($que)rnrn if(!$connect)rn rn $connect = mysql_connect(‘localhost’,'axmanage','axmanpw');rn mysql_select_db('dex',$connect); //这里是连接成功的,但是查询总是<em>失败</em>。rn $query = mysql_query($que); //这一句<em>失败</em>。rn if(!$query)rn rn echo '查询<em>失败</em>';rn elsern echo '查询成功';rn rnrn rnrnax('select * from datak where fimx =1');
到底那里出错了?
rnrnrn rn rn rn rn rn rnrn*********************************************rn错误信息rn“/”应用程序中的服务器错误。rn-----------------------------rn未将对象引用设置到对象的实例。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rn异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。rn
log4net 按日期生成日志的问题
我是新手,<em>log</em><em>4</em>net 按日期分别<em>生成</em><em>日志</em>时会出现一次<em>生成</em>两个<em>日志</em>文件的问题,如:rnrn在2008年7月21日<em>生成</em>两个<em>日志</em>文件分别为:20080721.htm和20080721.htm20080721.htm,也就是说前一个<em>生成</em>的<em>日志</em>文件名是正常的,但后面一个<em>生成</em>的<em>日志</em>文件名为:20080721.htm20080721 扩展名为htm 这是为什么?请各位高手在这里指点,谢谢了.rnrnrn配置文件如下:rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn
到底哪里错了??
我想实现的是:用户输入一个数字,程序就输出数字级金字塔。但是,不成功啊rnusing System;rnnamespace Pyramid rnrn class programrn rn static void Main(string[] args)rn rn char A;rn int number = 0, num_x = 0, num_tab = 0;rn do rn rn Console.Write("你想输出几行金字塔?");rn number = Console.Read();rn for (int i = 1; i < number; i++)rn rn Console.WriteLine();rn num_x = 2 * i - 1;rn Console.WriteLine("m = 0", num_x );rn num_tab = (2 * number - 1 - num_x) / 2;rn for (int a = 1; a );rn rn rnrn
到底哪里错了?
#includern#define MAX 200rnint a[MAX],b[MAX],cnt=0;rnrnvoid jsval()rnrnrnrnrnvoid readdat()rnrn int i;rn FILE*fp;rn fp=fopen("int.dat","r");rn for(i=0;i
到底哪里错了啊?
unit zqd;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dia<em>log</em>s, DB, ADODB, Grids, DBGrids, StdCtrls;rnrntypern TForm1 = class(TForm)rn DBGrid1: TDBGrid;rn DataSource1: TDataSource;rn ADOQuery1: TADOQuery;rn Button1: TButton;rn procedure Button1Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnuses Unit2;rn$R *.dfmrnrnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn tryrn Form2 := TForm2.Create(Nil);rn Form2.Show;rn exceptrn Form2.Free;rnend;rnrnend.rn这是Unit1里的代码!rn我想button1click弹出子窗体rn哪错了啊?还是窗体的属性设置的哪不对?窗体和子窗体的属性该怎么设置啊?
到底哪里错了
Under DBCS, a given string can contain[color=#FF0000] all single-byte ANSI characters, all double-byte characters, or a combination of the two[/color]. These possibilities require special care in parsing strings, including CString objects.rnrnhttp://technet.microsoft.com/zh-cn/subscriptions/ey1<em>4</em>2t<em>4</em>8(v=vs.71).aspxrnrn如果这段英文是真实的,那么下面的英文就有问题吗?rnrnrnrnSourceType/DestinationTypernDescriptionrnArnANSI character string.rnWrnUnicode character string.rnTrnGeneric character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).rnOLErnOLE character string (equivalent to W).rnrnhttp://msdn.microsoft.com/en-us/library/87zae<em>4</em>a3.aspxrnrnrnW2A 中的a是ansi ? rnrn擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?rnrn一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换, rn效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。rnrn我希望这个[color=#FF0000]a是指: mbcs , 而不是单纯的( ascii) !!!![/color]rnrn
到底哪里错了?
Under DBCS, a given string can contain all [color=#FF0000]single-byte ANSI characters, all double-byte characters, or a combination of the two[/color]. These possibilities require special care in parsing strings, including CString objects.rnrnhttp://technet.microsoft.com/zh-cn/subscriptions/ey1<em>4</em>2t<em>4</em>8(v=vs.71).aspxrnrn如果这段英文是真实的,那么下面的英文就有问题吗?rnrnrnrnSourceType/DestinationTypernDescriptionrn[color=#FF0000]ArnANSI character string.[/color]rnWrnUnicode character string.rnTrnGeneric character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).rnOLErnOLE character string (equivalent to W).rnrnhttp://msdn.microsoft.com/en-us/library/87zae<em>4</em>a3.aspxrnrnrnW2A 中的a是ansi ? rnrn擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?rnrn一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换, rn效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。rnrn我希望这个a是指: mbcs , 而不是单纯的( ascii) !!!!rnrnrnrn
到底哪里错了!!!
1 create or replace function cal(a int,b int) return int isrn 2 c int;rn 3 beginrn <em>4</em> c:=a/b;rn 5 return c;rn 6 exceptionrn 7 when zero_divide thenrn 8 dbms_output.put_line('wrong');rn 9* end;rnSQL> /rnrn函数已创建。rnrnSQL> declarern 2 i int;rn 3 beginrn <em>4</em> i:=cal(5,0);rn 5 end;rn 6 /rndeclarern*rnERROR 位于第 1 行:rnORA-06503: PL/SQL: 函数未返回值rnORA-06512: 在"SYSTEM.AAA", line 9rnORA-06512: 在line <em>4</em>
到底哪里错了
package dqh;rnrnpublic class SimpleCalculatorrnrn private String first;rn private String second;rn private double result;rn private String operator;rn rn public void setFirst ( String first )rn rn this.first = first;rn rn rn public void setSecond ( String second )rn rn this.second = second;rn rn rn public void setOperator ( String operator )rn rn this.operator = operator;rn rn rn public String getFirst ( )rn rn return this.first;rn rn rn public String getSecond ( )rn rn return this.second;rn rn rn public double getResult ( )rn rn return this.result;rn rn rn public void calculate ( )rn rn double one = Double.parseDouble ( first );rn double two = Double.parseDouble ( second );rn tryrn rn if ( operator.equals ( "+" ) )rn result = one + two;rn elseif ( operator.equals ( "-" ) );rn result = one - two;rn elseif ( operator.equals ( "*" ) );rn result = one * two;rn elseif ( operator.equals ( "/" ) );rn result = one / two;rn rn catch ( Exception e )rn rn System.out.println ( e );rn rn rnrnrn原来说elseif ( operator.equals ( "*" ) )错误,于是我加了";"rnrn但现在又说rnSimpleCalculator.java:<em>4</em>8: cannot resolve symbol symbol : method elseif (boolean) location: class dqh.SimpleCalculator elseif ( operator.equals ( "-" ) ); ^ SimpleCalculator.java:50: cannot resolve symbol symbol : method elseif (boolean) location: class dqh.SimpleCalculator elseif ( operator.equals ( "*" ) ); ^ SimpleCalculator.java:52: cannot resolve symbol symbol : method elseif (boolean) location: class dqh.SimpleCalculator elseif ( operator.equals ( "/" ) ); ^ 3 errors rnrn我都不知道怎么会事!
真的找不出到底哪里出错了。。。囧。。有空的帮小弟看下到底哪里错了,谢了
#includern#includernusing namespace std;rnrntemplaternvoid split(const list& aList, list& list1, list& list2)rnrnrnrn list::iterator iter=aList.begin();rn while(iter!=aList.end())rn rn int i=1;rnrn if(i%2==1)rn list1.push_back(*iter);rn elsern list2.push_back(*iter);rn aList.erase(iter++);rn i++;rn rnrnrnrnvoid main()rnrn int arr[]=1,2,3,<em>4</em>,5,6;rn int arrsize=sizeof(arr)/sizeof(int);rn const listaList(arr,arr+arrsize);rn listlist1;rn listlist2;rn split(aList,list1,list2);rn list::iterator iter1=list1.begin();rn list::iterator iter2=list2.begin();rn while(iter1!=list1.end())rn rn cout<<
【求助】 哪里出错了?
Inputrn每组输入数据占3行,第一行是2个整数 n ( 0 < n ≤ 100 ) 和 m ( 0 < m ≤ 100 ) ,分别表示集合A和集合B的元素个数。rn第二行是n个整数,表示集合A的n个元素。rn第三行是m个整数,表示集合B的m个元素。rn每个元素为不超出int范围的整数,元素之间有一个空格隔开。rn如果n=0并且m=0表示输入的结束,不做处理。rnrnOutputrn针对每组数据输出一行数据,表示A-B的结果,如果结果为空集合,则输出"NULL",否则从小到大输出结果。 两个元素之间有一个空格,行末没有空格。rnrnSample Inputrn3 3rn1 2 3rn1 <em>4</em> 7rn3 7rn2 5 8rn2 3 <em>4</em> 5 6 7 8rn0 0rnrnSample Outputrn2 3rnNULLrnrn[code=c]#includernvoid bubble(int p[],int t);rnint main()rnrn int i,j,n,k,m,t,a[101],b[101],p[101];rn while(scanf("%d%d",&n,&m)!=EOF)rn rn if(n==0&&m==0)rn break;rn t=n;rn for(i=0;ip[j+1])rn rn s=p[j];p[j]=p[j+1];p[j+1]=s;rn rn rn[/code]
哪里出错
select (case when 200%60/60.0=0 then (200/60) else (case when 200%60/60.0>0.5 then (200/60+1) else (cast(200/60 as varchar)+'.5') end) end)rn
哪里出错了???
服务器端代码:rnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnimport java.io.*;rnimport java.net.*;rnimport java.sql.*;rnrnclass Net extends Threadrn private Socket socket;rn private BufferedReader in;rn private PrintWriter out;rn private Connection con = null;rn private Statement stmt;rn private ResultSet rst;rn private String [] str = new String [3];rn private boolean flag = true;rnrn public Net (Socket s) throws IOException, SQLException, ClassNotFoundExceptionrn socket = s;rn in = new BufferedReader(rn new InputStreamReader(rn socket.getInputStream()));rnrn out = new PrintWriter(rn new BufferedWriter(rn new OutputStreamWriter(rn socket.getOutputStream())),true);rnrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn con = DriverManager.getConnection("jdbc:odbc:net");rn stmt = con.createStatement();rnrn start();rn rnrn public void run()rn tryrn for(int i = 0; i);rn ResultSetMetaData rsmd = rst.getMetaData();rn column = rsmd.getColumnCount();rn columnname = new String [column - 2];rn for(int i = 0; i
读取文件哪里出错
import java.io.*;rnimport java.util.Scanner;rnrnrnrnpublic class FileRd rn public static void main(String[] agrs) throws Exceptionrn File file=new File("e:\\111.txt");rn Scanner sc=new Scanner(file);rn int num=0;rn int sum=0;rn if(sc.hasNextLine())rn sum=sum+sc.nextInt();rn num++;rn rn rn System.out.println("文件中的数据总和为:"+sum);rn System.out.println("文件中数据的平均值为:"+sum/num);rn rn rnrnrnrn打印结果只读入了文件的第一行数据,为什么??不知道问题出在哪里rn
请问哪里出错了???
rn想编写独立模块,不知道下面哪里<em>出错</em>了,用的是python2.5rndef show():rn print 'i am a moudle'rn if _name_=='_main_':rn rn File "", line 3rn if _name_=='_main_':rn rn^rnIndentationError: unindent does not match any outer indentation levelrnrnrnrndef show():rn pirnt ' I am a module!'rnif _name_='_main_':rn show()rn print ' I am not a module!'rnrn rnrn
匿名方法,哪里出错了?
string[] strArr = "sdf", "df", "er", "tyyt", "uiyytr", "uyigf", "ewrfw", "e", "33" ;rnrn IEnumerable newArr = Enumerable.Where(strArr, rn rn new Delegate(string dd)rn int a;rn return int.TryParse(dd,out a);rn rn rn rn );
哪里出错了呢?
照书上的rn//FrameTest.javarnimport java.awt.*;rnclass FrameTest extends Framernpublic boolean handleEvent(Event evt)rnif (evt.id==Event.WINDOW_DESTROY) System.exit(0);rn//书上原来是return super.handleEvent(e);rnreturn super.handleEvent(evt);rnrnrnpublic static void main(String[] args) rnrnFrame f=new Frame();rnf.resize(300,200);rnf.show();rnrnrnrnrnrn
哪里出错了?
有下面一段程序:rn//---------------------------------------------------------------------------rnrnrn#include rn#include rn#include rn#include rnrn//---------------------------------------------------------------------------rnrnrnstruct Entryrn string bookname ;rn string card ;rn;rnvoid f(vector& ve, list& le)rnrn sort(ve.begin(), ve.end()) ;rn unique_copy(ve.begin(), ve.end), le.begin()) ;rnrnvoid f1(vector& ve, list& le)rnrn sort(ve.begin(), ve.end) ;rn unique_copy(ve.begin(), ve.end(), back_insert(le))rnrnint main(int argc, char* argv[])rnrn vector &vbook ;rn list& &lbook ;rn f(vbook, lbook) ;rnrnrn return 0;rnrn//---------------------------------------------------------------------------rn在vc6种编译时除下面错误:rnaglor1.cpprnG:\exise\aglor1.cpp(13) : error C21<em>4</em>6: syntax error : missing ';' before identifier 'bookname'rnG:\exise\aglor1.cpp(13) : error C2501: 'string' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(13) : error C2501: 'bookname' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(1<em>4</em>) : error C21<em>4</em>6: syntax error : missing ';' before identifier 'card'rnG:\exise\aglor1.cpp(1<em>4</em>) : error C2501: 'string' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(1<em>4</em>) : error C2501: 'card' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(16) : error C2065: 'vector' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(16) : error C2065: 've' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2065: 'list' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(16) : error C2065: 'le' : undeclared identifierrnG:\exise\aglor1.cpp(17) : error C2<em>4</em><em>4</em>8: '' : function-style initializer appears to be a function definitionrnG:\exise\aglor1.cpp(21) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(21) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(22) : error C2<em>4</em><em>4</em>8: '' : function-style initializer appears to be a function definitionrnG:\exise\aglor1.cpp(28) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(28) : error C2065: 'vbook' : undeclared identifierrnG:\exise\aglor1.cpp(29) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(29) : error C2065: 'lbook' : undeclared identifierrnG:\exise\aglor1.cpp(29) : error C2102: '&' requires l-valuernG:\exise\aglor1.cpp(30) : error C2065: 'f' : undeclared identifierrnError executing cl.exe.rnrnaglor1.obj - 22 error(s), 0 warning(s)rn//____________________________________rn请问错再哪了?
哪里出错了????
#include rn#include rn#define N 7rn//定义一个含有两个域的结点rntypedef struct nodern int data;rn struct node *next;rnElemSN;rnrn//创建正向链表(尾插)rnElemSN * CreatLink1(int a[],int n)rnrn ElemSN *h,*p,*t;rn for(int i=0;idata=a[i];rn p->next=NULL;rn if(!i) h=t=p;//是第一个结点rn else t=t->next=p;rn rn return h;rnrnrn//创建逆向链表(头插)rnElemSN * CreatLink2(int a[],int n)rnrn ElemSN *h,*p;rn h=NULL;rn for(int i=0;idata=a[i];rn p->next=NULL;rn p->next=h;//挂链rn h=p;//挪头指针rn rn return h;rnrnrn//输出单向链表rnvoid PrintLink(ElemSN *h)rnrn ElemSN *p;rn printf("\n输出的链表为:\n");rn for(p=h;p;p=p->next)rn printf("%5d",p.data);rnrnrn//主函数调用rnint main(void)rnrn ElemSN *head1,*head2;rn int a[N]=0;rn int i;rn printf("\n请依次输入链表每个结点的值:\n");rn for(i=0;i
不知道哪里出错了…
各位大哥好, 工作上临时需要用php操作个数据库, 但是不知道为什么一直无法成功Insert数据进Database, 想请各位帮忙检查一下哪里<em>出错</em>了rnrnrn rnrn". $row1[0] . " ";rn rn rn rnrnelsernrn echo "different-". $row[0]. " ";rn rn rn mysql_select_db("testPLM",$connect);rn rn mysql_query("SET NAMES utf8");rn //底下要把另一个数据库没有的数据加入, 可是都报错rn mysql_query("INSERT INTO version (name, time, description) VALUES('$row[0]', NULL, NULL)") or die('Insert data fail');rn rnrnrn rnrnrn rn?>
哪里出错了啊?
考务管理系统中的自动安排考场和监考安排rnrn 哪里错了啊??rnrnpublic class Ramdrnpublic static int[] randoms()rnrnRandom r = new Random();rnint temp1,temp2;rnint send[] = 0,1,2,3,<em>4</em>,5,6,7,8,9,10,11,12,13,1<em>4</em>,15,16,17,18,19,20,21;rnint len = send.length;rnint returnValue[] = new int[22];rnfor(int i=0;i<22;i++)rnrntemp1 = Math.abs(r.nextInt())% len;rnreturnValue[i] = send[temp1];rntemp2 = send[temp1];rnsend[temp1] = send[len-1];rnsend[len-1] = temp2;rnlen--;rnrnreturn returnValue;rnrnrnpublic static void main(String args[])rnrn int r;rn Ramd m=new Ramd();rn m.randoms();rn r=m.randoms();rn system.out.println(r);rnrnrnrn
myEclipse哪里出错了???!!!
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 22 in the generated java filernThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:<em>4</em>39)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:33<em>4</em>)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3<em>4</em>2)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 <em>log</em>s.rnrnrn--------------------------------------------------------------------------------rn
哪里出错了。
[code=HTML]rn[/code]rn直接返回没有问题rn如下rn Response.Charset = "gb2312" rn response.expires = -1rn xname = request.QueryString("xname")rn xpass = request.QueryString("xpass")rn response.write xpassrn 但是按最上面查询就有问题了 郁闷, 返回的是一个莫名奇妙的页面代码
哪里出错了,非常感谢
[img=https://img-bbs.csdn.net/upload/201711/2<em>4</em>/1511512807_958720.png][/img]
请问哪里出错
在数据库的表中还有id这列,我把它设置为int,自增rnrnPrivate Sub GetConnected()rn Set cn = New ADODB.Connectionrn cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Cata<em>log</em>=hardware;Data Source=CHENDONG-2E7F71"rn cn.CommandTimeout = 30rn cn.OpenrnEnd SubrnrnPublic cn As ADODB.ConnectionrnDim str As StringrnDim rs As ADODB.RecordsetrnrnPrivate Sub Command1_Click()rn GetConnectedrn Set rs = New ADODB.Recordsetrn rs.Open str, cn, adOpenDynamic, adLockOptimisticrn rs.AddNewrn rs("type") = Text2.Textrn rs("brand") = Combo1.Textrn rs("info") = Text3.Textrn rs.UpdaternEnd Sub
归并排序,哪里出错
[code=C/C++]rnvoid merge(int a[], int low, int mid, int high)rnrn int n1 = mid - low + 1;rn int n2 = high - mid;rn int b[10];rn int c[10];rn int i, j, k;rnrn for(i = 0; i < n1; i++)rn b[i] = a[low+i-1];rn for(i = 0; i < n2; i++)rn c[i] = a[mid+i];rn i = 0;rn j = 0;rn k = 0;rn while((i < n1) && (j < n2) && (k < high))rn rn if(b[i] < c[j])rn rn a[k] = b[i];rn i++;rn rn else rn rn a[k] = c[j];rn j++;rn rn k++;rn rn rnrnrnrnvoid mergeSort(int a[], int low, int high)rnrn int mid;rn if(high >= low)rn rn mid = (low + high)/2;rn mergeSort(a, low, mid);rn mergeSort(a, mid, high);rn merge(a, low, mid, high); rn rnrnrnrnrn[/code]rnrn代码很乱,大家凑合看
不知道哪里出错
[code=C#]rnrn protected void Button1_Click(object sender, EventArgs e)rn rn // int a = Convert.ToInt32(this.RadioButtonList1.SelectedValue);rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand();rn cmd.Connection = con;rn cmd.CommandText = "update Title set titleID=Convert.ToInt32(this.RadioButtonList1.SelectedValue)";rn cmd.ExecuteNonQuery(); rn con.Close(); rn rnrnrn[/code]rn提示我“。”附近有错误。不知道是update写错了还是怎么了。rn之前我弄了个RadioButtonList,我想获得被选中项的this.RadioButtonList1.DataValueField的值,不知道this.RadioButtonList1.SelectedValue是不是这个值。rnrn我想用这个值更新一下下面的表[code=SQL]rncreate table Titlern(rn id int primary key, --编号rn titleID int default 1 not null --投票的标题序号rn)rnrninsert into Title values(1,1)rn[/code]rn之前还有一段我绑定控件的代码:rn[code=C#]rn protected void Page_Load(object sender, EventArgs e)rn rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand("select * from voteMaster",con);rn SqlDataReader sdr = cmd.ExecuteReader();rn this.RadioButtonList1.DataTextField = "voteTitle";rn this.RadioButtonList1.DataValueField = "voteID";rn this.RadioButtonList1.DataSource = sdr;rn this.RadioButtonList1.DataBind();rn sdr.Close();rn con.Close();rn [/code]rnrn我就是想实现用voteMaster表中的voteID的值去更新Title表中的titleID。好心人帮帮忙吧,先谢了。
克鲁斯卡尔算法哪里出错了??
//克鲁斯卡尔算法rntypedef structrnrnint u;int v;int w;rnEdge;rnvoid Kruskal(Edge E[],int n,int e)rnrn int i,j,m1,m2,sn1,sn2,k;rn int vset[MAXVEX];rn for(i=0;i
ObQueryNameString哪里出错
buf=*(ULONG*)irp->AssociatedIrp.SystemBuffer;rn pdev=(PDEVICE_OBJECT)buf;rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,102<em>4</em>);rn status=ObQueryNameString((PVOID)pdev,dev_name,102<em>4</em>,rl);rn DbgPrint("%d",status);rn if(status==STATUS_INFO_LENGTH_MISMATCH)rn rn ExFreePool(dev_name);rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,*rl);rn status=ObQueryNameString((PVOID)pdev,dev_name,*rl,rl);rn rn if(status==STATUS_SUCCESS)rn rn memcpy(irp->UserBuffer,(const void*)(dev_name->Name.Buffer),(dev_name->Name.Length));rn ExFreePool(dev_name);rn rn这儿buf是win32传进去的DEVICE_OBJECT的地址,地址是正确的,然后将设备名传出去rn编译正常但执行ObQueryNameString后它返回了-10737<em>4</em>1819,怎么回事STATUS_INFO_LENGTH_MISMATCH应该是-10737<em>4</em>1820
SQL语法哪里出错了。
哪里<em>出错</em>了。rn[code=SQL]rndeclarern tname varchar2(60);rn cname varchar(100);rn dlength number;rn maxlength number;rnbeginrn maxlength := 0;rn for idx in (select u.TABLE_NAME,rn u.COLUMN_NAME,rn u.DATA_LENGTH,rn decode(mod(u.DATA_LENGTH, 2), 0, 'EVEN', 'ODD') ODD_EVENrn from user_tab_columns urn where u.DATA_TYPE = 'VARCHAR2'rn and u.TABLE_NAME inrn (select t.table_namern from all_tables trn where t.num_rows > 0rn and t.owner = 'BXDB')) looprn tname := idx.TABLE_NAME;rn cname := idx.COLUMN_NAME;rn dlength := idx.DATA_LENGTH;rn execute immediate 'select max(lengthb(' || cname || ')) from ' || tnamern into maxlength;rn if (1.5 * maxlength) > dlength thenrn if idx.odd_even = 'ODD' thenrn dbms_output.put_line('alter table ' || tname || ' modify ' ||rnrn cname || 'varchar2(' || 2 * maxlength || ');');rn elsern dbms_output.put_line('alter table ' || tname || ' modify ' ||rn cname || 'varchar2(' || 1.5 * maxlength || ');');rn end if;rn end if;rn end loop;rnend;rn[/code]
请问哪里出错了?
[code=C/C++]#include rntemplate rnvoid ShowArray (T arr[], int n);rnrntemplate rnvoid ShowArray(T * arr[], int n);rnrnstruct debts rnrn char name[50];rn double amount;rn;rnrnint main(void)rnrn using namespace std;rn int things[6] = 13,31,103,301,310,130;rn struct debts mr_E[3] = rn rn "Ima Wolfe", 2<em>4</em>00,rn "Ura Foxe ", 1300,rn "Iby Stout", 1800rn ;rn double * pd[3];rn for (int i = 0; i < 3; i++)rn pd[i] = &mr_E[i].amount;rn cout << "Listing Mr.E's counts of things: \n";rn ShowArray(things, 6);rn cout << "Listing Mr.E's debts:\n";rn ShowArray(pd, 3);rn return 0;rnrnrntemplate rnvoid ShowArray(T arr[], int n)rnrn using namespace std;rn cout << "template A\n";rn for (int i = 0; i < n; i++)rn cout << arr[i] << ' ';rn cout << endl;rnrnrntemplate rnvoid ShowArray(T * arr[], int n)rnrn using namespace std;rn cout << "template B\n";rn for (int i = 0; i < n; i++)rn cout << *arr[i] << ' ';rn cout endl;rn[/code]
哪里出错了?
错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x8000<em>4</em>005)rn[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x<em>4</em>bc Thread 0x8<em>4</em>8 DBC 0x8f3fd<em>4</em> Jet'。rn/QIANQIAN/connopen.asp, 第 7 行rn
哪里出错了?求教!
rnclass kothread extends Threadrnrn int n;rn String st;rn public kothread(String ko)rn rn st=ko;rn rn public void run()rn rn for(n=0;n java.lang.NoSuchMethodError: kothread.start()Vrn at ko3.main(ko3.java:3<em>4</em>)
哪里出错了??
CREATE TABLE 门诊结算单(rn 结算单编号 CHAR(5) PRIMARY KEY,rn 诊疗费用 MONEY,rn 药品费用 MONEY )rnCREATE PROC consume;1rnASrnDECLARE @ total MONEY,rntotal=SELECT诊疗费用FROM门诊结算单+SELECT药品费用FROM门诊结算单
不知道哪里出错了:(
我想复制一个标记块,但就是出不来~rnrnrn rnrnrn rnrnrnrn其中book.xml为:rnrnrn rn 我rn Carl Saganrn Ballantine Booksrn rn rn Catwingsrn Ursula K. Le Guinrn Scholasticrn rn rn Home Townrn Tracy Kidderrn Random Housern rnrnrn就是跳不出什么东西来啊~
分页程序哪里出错了?
这是我写的一段分页程序rndim MaxPerPage=10rnrnrs.MoveFirst rnrs.PageSize =MaxPerPagernhowmanyfields=rs.RecordCount-1rnif trim(request("page"))<>"" thenrn currentpage=Clng(request("page"))rn if currentpage>rs.PageCount thenrn currentpage=rs.PageCount rn end ifrnelsern currentpage=1rnend ifrn rnif rs.EOF thenrn Response.Write "记录录入中......"rnelsern totalput=rs.RecordCount rn if currentpage<>1 thenrn if (currentpage-1)*MaxPerPagern第 页 共记录rn<>1 thenrn Response.Write "["+"首页]"rn Response.Write "["+"上一页]"rn elsern Response.Write "[首页][上一页]"rn end ifrn if k<>n then rn Response.Write "["+"下一页]"rn Response.Write "["+"尾页]"rn elsern Response.Write "[下一页][尾页]"rn end if rn%>rnrnrn总共有3<em>4</em>行,可是首页显示了1-3<em>4</em>,然后第2页显示了11-3<em>4</em>,然后....请问这是为什么?看了老半天了,
哪里出错了啊
1.指出以下程序的错误,并说明原因rnvoid func2(int *value)rnrn *value = 2;rnrnvoid func1()rnrn int * p = 0;rn func2(p);rnrnrn2.rnint a = 9; int b = 10;rnvoid swap(int x,int y)rnrn int temp = x;rn x = y;rn y = x;rnrnswap(a,b);rnrn;rnrnint main()rnrn D cd;rn cd.a = 1000;rn cout << "a=" << cd.a << endl;rn return 0;rnrnrnrn3.class Exaplernrn public:rn Static double rate = 6.5;rn;rnrn
看看哪里出错
[code=C/C++]/*rn*图的邻接表存储rn*/rn#include/* EOF(=^Z或F6),NULL */rn#includern#includernrn#define MAX_VERTEX_NUM 20rn//#define MAX_NAME 5rnrntypedef int InfoType ;//存放网的权值rntypedef char VertexType[5];//字符串类型rnrntypedef enumrnrn DG,DN,UDG,UDNrnGraphKind;rntypedef struct ArcNode//表结点rnrn int adjvex;//弧所指向顶点的位置rn struct ArcNode *nextarc;//指向下条弧的指针rn InfoType info;//弧相关信息(权)rnArcNode;rntypedef struct VNode//头结点rnrn VertexType data;//顶点信息rn ArcNode *firstarc;//第一个表结点的地址,指向第一条依附该顶点的弧的指针 rnVNode,AdjList[MAX_VERTEX_NUM];rntypedef structrnrn AdjList vertices;rn int vexnum,arcnum;//图当前的顶点数和弧数rn int kind;rnALGraph;rnrnrn/* 采用邻接表存储结构,构造没有相关信息的图G*/rnvoid InitALGraph(ALGraph *G)rnrn printf("请输入图的类型(DG:0,DN:1,UDG:2,UDN:3)");rn scanf("%d",&(*G).kind);rn printf("请输入图的顶点数:");rn scanf("%d",&(*G).vexnum);rn printf("请输入图的边数:");rn scanf("%d",&(*G).arcnum);rn int i;rnrn printf("请输入定点向量:");rn for(i=0;iinfo=0;//初始化权值为0rn p1->nextarc=(*G).vertices[v1_site].firstarc;rn (*G).vertices[v1_site].firstarc=p1;rnrn switch((*G).kind)rn rn case DG:rn break;rn case DN:rn printf("请输入权值:");rn scanf("%d",&p1->info);rn break;rn case UDG:rn p2=(ArcNode *)malloc(sizeof(ArcNode));rn p2->adjvex=v1_site;rn p2->info=0;//初始化权值为0rn p2->nextarc=(*G).vertices[v2_site].firstarc;rn (*G).vertices[v2_site].firstarc=p2;//头插入rn break;rn case UDN:rn printf("请输入权值:");rn scanf("%d",&p1->info);rn p2=(ArcNode *)malloc(sizeof(ArcNode));rn p2->adjvex=v1_site;rn p2->info=p1->info;//初始化权值为0rn p2->nextarc=(*G).vertices[v2_site].firstarc;rn (*G).vertices[v2_site].firstarc=p2;//头插入rn break;rn default:rn exit(0);rn rn rnrnvoid printALGraph(ALGraph G)rnrn int i;rnrn for(i=0;iadjvex].data);rn break;rn case UDN:rn printf("%s --",G.vertices[i].data);rn printf("%s,%d",G.vertices[p->adjvex].data,p->info);rn break;rn case DG:rn printf("",G.vertices[i].data);rn printf("%s>",G.vertices[p->adjvex].data);rn break;rn case DN:rn printf("< %s ->", G.vertices[i].data);rn printf(" %s , %d >", G.vertices[p->adjvex].data, p->info);break;rn default:rn exit(0);rn rn p=p->nextarc;rn printf("\n\n");rn rn rnrnint main()rnrn ALGraph G;rnrn createALGraph(&G);rnrn printALGraph(G);rnrn return 0;rn[/code]
这个哪里出错了?
[code=C/C++]#includern#includernusing namespace std;rnint main()rnrn vector snum;rn int count;rn cout<>count)rn snum.push_back(count);rn int *pt= new int[snum.size()];rn int *pt2=pt;rn for(vector::iterator i=snum.begin();i!=snum.end();++i,++pt)rn *pt2=*i;rn delete [] pt;rn for(int a=0;a!=sizeof(pt2)/sizeof(int);a++)rn cout<
哪里出错了~
rn为什么inputInteger1,inputInteger2输出的是<em>4</em>097、38<em>4</em>0而不是15,16?rnrn[code=Java]/*rn * To change this template, choose Tools | Templatesrn * and open the template in the editor.rn */rnrnimport javax.microedition.midlet.*;rnimport javax.microedition.lcdui.*;rnimport javax.microedition.rms.*;rnimport java.io.*;rnrn/**rn * @author stcLhongrn */rnpublic class WriteReadExample extends MIDlet implements CommandListenerrn private Display display;rn private Alert alert;rn private Form form;rn private Command exit;rn private Command start;rn private RecordStore recordstore = null;rnrn public WriteReadExample()rn display = Display.getDisplay(this);rn exit = new Command("Exit",Command.EXIT,1);//sdfrn start = new Command("Start",Command.SCREEN,1);rn form = new Form("Record");rn form.addCommand(exit);rn form.addCommand(start);rn form.setCommandListener(this);rn rn public void startApp() rn display.setCurrent(form);rn rnrn public void pauseApp() rn rnrn public void destroyApp(boolean unconditional) rn rnrn public void commandAction(Command command,Displayable displayable)rn if(command == exit)rn destroyApp(true);rn notifyDestroyed();rn rn else if(command == start)rn tryrn recordstore = RecordStore.openRecordStore("myRecordStore", true);rn rn catch(Exception error)rn alert = new Alert("Error Creating",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn byte[] outputRecord;rn String outputString = "First Record";rn int outputInteger1 = 15;rn int outputInteger2 = 16;rn boolean outputBoolean = true;rn ByteArrayOutputStream outputStream = new ByteArrayOutputStream();rn DataOutputStream outputDataStream = new DataOutputStream(outputStream);rn outputDataStream.writeUTF(outputString);rn outputDataStream.writeInt(outputInteger1);rn outputDataStream.writeInt(outputInteger2);rn outputDataStream.writeBoolean(outputBoolean);rn outputDataStream.flush();rn outputRecord = outputStream.toByteArray();rn recordstore.addRecord(outputRecord, 0, outputRecord.length);rn outputStream.reset();rn outputStream.close();rn outputDataStream.close();rn rn catch(Exception error)rn alert = new Alert("Error Writing",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn String inputString = null;rn int inputInteger1 = 0;rn int inputInteger2 = 0;rn boolean inputBoolean = false;rn byte[] byteInputData = new byte[100];rn ByteArrayInputStream inputStream = new ByteArrayInputStream(byteInputData);rn DataInputStream inputDataStream = new DataInputStream(inputStream);rnrn for(int x = 1;x,error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn rn rn rnrn[/code]
语法哪里出错了?
[code=SQL]rncreate table t_user rn(ID varchar2(20),rnName varchar2(20))rnrninsert into t_user values('1','張三');rninsert into t_user values('2','李四');rnrnCREATE OR REPLACE PACKAGE pkg_user ASrn --定义返回值(游标类型)rn TYPE myrctype IS REF CURSOR;rn --定义查询过程rn PROCEDURE sp_userlist(cur_result OUT myrctype);rnEND pkg_user;rnrnCREATE OR REPLACE PACKAGE BODY "PKG_USER" ASrn --查询过程rn PROCEDURE sp_userlist(cur_result OUT myrctype) ISrn sqlstr VARCHAR2(500);rn BEGINrn OPEN cur_result FORrn select * from t_user;rn END sp_userlist;rnEND pkg_user;rnrnbegin sp_userlist ; end; rn[/code]rnrn出现错误如下:rn--------------------------------------------------------------------------------rnrnORA-06550: 第 1 行, 第 7 列: rnPLS-00201: 必须声明标识符 'SP_USERLIST'rnORA-06550: 第 1 行, 第 7 列: rnPL/SQL: Statement ignored
这个哪里出错了?
test.jsprnrnrnrnrn rntestrnrnrnrn rn夺rnrnrnrnrnrntest1.jsprnrnrnrn rntest1rnrnrnrnrnrnrnrnrn在jbuilder里面显示是:before:'ÎÒ°®Äã'after:'�Ұ���rn在ie显示是:before:'我爱ä½?rnafter:'我爱�? rnrn该怎么解决这个乱码问题?
看下哪里出错了???
rn文件:rnrnrn用:set objrs_new=server.CreateObject("adodb.recordset")rn objrs_new.open sql_now,con,1,3,1rn出现同样的问题.rnrnrn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x800<em>4</em>0E10)rn[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。rn/e/now_re.asp, 第 15 行rnrnrn大家帮下忙啊,我做了一整天啦,都没有通过...^^rn
请问哪里出错了?
代码:rnrn错误:rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行2<em>4</em>2 rnrn服务器对象 错误 'ASP 0177 : 800<em>4</em>01f3' rnrnServer.CreateObject <em>失败</em> rnrn/conn.asp,行<em>4</em> rnrn无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。 rn
代码哪里出错了?
[img=https://img-bbs.csdn.net/upload/201503/17/1<em>4</em>2658<em>4</em>852_75719<em>4</em>.png][/img]
想知道哪里出错
代码如下:rn#include "stdio.h"rn#include "windows.h"rn#include "forC.h"rnrn#define re 10rnint main()rn rn int yr[re];rn int i,j,l;rn l=scanf("%d",&j);rn while(l)rn rn printf("Continue!\n");rn l=scanf("%d",&j);rn rn printf("Fail!%d\n",l);rn for(i=0;i);rn return 0;rnrn运行结果:rn<em>4</em>rnContinue!rn1rnContinue!rndrnFail!0rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn-858993<em>4</em>60rn请按任意键继续. . .rn按理来说while循环与下面的for循环没有关系的,为什么不进入到for的输入循环里?而且结果很奇怪
ifstream哪里出错了?
rn#include "stdafx.h"rn#include rn#include rnrnusing namespace std;rnrntypedef std::string String;rnrnvoid loadDirect(const String& filename)rnrn rn std::ifstream fp;//这句话编译的时候报错 “fp”使用未定义的 class“std::basic_ifstream”rn rn fp.open(filename.c_str(), std::ios::in | std::ios::binary);rn if(!fp)rn rn //..rn rn rnrnrnrnint _tmain(int argc, _TCHAR* argv[])rnrn cout<;rnrn return 0;rnrn
这个哪里出错
split函数rn格式: v=split(s,d])rn用法:把字符串s分割成字符串数组,分隔符为d.rn
fread哪里出错了?
abc.txt里面的内容是:rnthisisokrn想将字符窜三个三个字存进数组list里。rnthi存进list[0];rnsis存进list[1]。。。。;rnfread是不是哪里用错了?rnrnrn#include rn#include rn#include rnrnrn main( ) rnrnrnchar list[<em>4</em>][10];rnFILE *fp;rnfp=fopen("d://abc.txt","w");rnrnfor(int i =0;i ,list[1]);rn
哪里出错了呢???
# include rn# include rn# include rn# include rn# include rnusing namespace std;rnstring read_file_into_string()rn ifstream ifile("xxh.txt");rn ostringstream buf;rn char ch;rn while(buf && ifile.get(ch))rn buf.put(ch);rn //cout< lines_of_text;rn string::size_type pos=0,npos;rn%%%%%%%%%%%%%%%%%%%?????????????rn while(pos!=npos)rn rn pos=text.find('\n',pos);rn //cout<<
这一段哪里出错了?
rnrn错误提示:rnrnrnMicrosoft VBScript 编译器错误 错误 '800a03f6'rnrn缺少 'End'rnrn/iisHelp/common/500-100.asp,行2<em>4</em>2rnrnMicrosoft JScript 编译错误 错误 '800a03ec'rnrn缺少 ';'rnrn/Web/menu/NewMenu.asp,行<em>4</em><em>4</em>rnrnresponse.write " "rn---------------^rn
指点下哪里出错
下面的程序调试没错,就是在运行是你输入10个数字后选择一个排序方法输出,输出的都是0 0 0…………这是怎么回事啊?谁帮我解决下rnusing System;rnrn//接口ISort1,ISort2,ISort3,ISort<em>4</em>rninterface ISort1rnrn double[] getnumber();rnrnrninterface ISort2rnrn double[] numSort();rnrnrninterface ISort3rnrn void outplay();rnrnrninterface ISort<em>4</em>rnrn void Maopao(ref double[] numberValue);rnrn void insertSort(ref double[] numberValue);rnrnrnclass SetCountrnrn public static int num_count = 0;rn public double[] numberValue = new double[num_count];rnrn //ISort1接口方法实现,设置数组的长度rn public void setCount(int NumberCount)rn rn num_count = NumberCount;rn numberValue = new double[num_count];rn rnrnrnclass GetNumber : SetCount, ISort1rnrn //验证输入的数字rn private bool isNumber(string str)rn rn for (int i = 0; i < str.Length; i++)rn rn if (!char.IsNumber(str,i) && str.Substring(i,1) != ".")rn rn return false;rn rn rnrn return true;rn rnrn //ISort2接口方法实现,输入数组元素rn public double[] getnumber()rn rn string strline;rnrn for(int num = 0;num < num_count;num++)rn rn Console.Write("Enter the Number: ");rn strline = Console.ReadLine();rnrn if (isNumber(strline))rn rn numberValue[num] = double.Parse(strline);rn rn elsern rn Console.WriteLine("error! Input again!");rn num = num - 1;rn rn rnrn return numberValue;rn rnrnrnclass SortMethod : SetCount, ISort<em>4</em>rnrn //冒泡排序rn public void Maopao(ref double[] numberValue)rn rn double temp;rn for(int j = 0; j < numberValue.Length; j++)rn for(int k = j+1; k< numberValue.Length; k++)rn if(numberValue[j] < numberValue[k])rn rn temp = numberValue[j];rn numberValue[j] = numberValue[k];rn numberValue[k] = temp;rn rn rnrn //插入排序rn public void insertSort(ref double[] numberValue) rn rn for(int i = 1;i < numberValue.Length; ++i) rn rn double l = numberValue[i]; rn int j = i; rn while((j > 0) && (numberValue[j-1] > l)) rn rn numberValue[j] = numberValue[j-1]; rn --j; rn rn numberValue[j] = l; rn rn rnrnrnclass NumSort : SortMethod, ISort2rnrnrn //ISort3接口方法实现,选择要排序的方法rn public double[] numSort()rn rn int t;rn SortMethod sm = new SortMethod();rnrn Console.WriteLine("Please Choose which method you want to:1)MaoPao,2)InsertSort:");rn string choice=Console.ReadLine();rn t=Int32.Parse(choice);rn if(t==1)rn rn sm.Maopao(ref numberValue);rn rn else if(t==2)rn rn sm.insertSort(ref numberValue);rn rn elsern rn Console.WriteLine("No such Method!");rn rnrn return numberValue;rn rnrnrnclass OutPlay : SetCount, ISort3rnrnrn //ISort<em>4</em>接口方法实现,输出排序好的数组rn public void outplay()rn rn foreach(double i in numberValue)rn Console.Write(" " + i + " ");rn rnrnrnclass Testrnrnrn //控制台显示rn public static void Main()rn rn SetCount sc = new SetCount();rn sc.setCount(10);rn GetNumber gn = new GetNumber();rn gn.getnumber();rn NumSort ns = new NumSort();rn ns.numSort();rn OutPlay op = new OutPlay();rn op.outplay();rn rn
端口监听到底出错
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口外,§监听其它任何端口§,都提示<em>失败</em>。telnet别的机器没问题,把ip换给别的电脑,别的电脑也没问题,端口<em>到底</em>哪<em>出错</em>了,郁闷啊,怎么回事啊?rn
这双缓冲到底哪里错了?
初始化双缓冲是这样的!rn[code=C/C++]rn// CDC MDc ;rn// CBitmap bmp;rn if(!MDc.CreateCompatibleDC(NULL)) rn rn ::PostQuitMessage(0);rn rn bmp.CreateCompatibleBitmap(&MDc, rt.Width(), rt.Height());rn ::SelectObject(MDc.GetSafeHdc(), bmp); rn[/code]rnrn下面是2个问题!rn[code=C/C++]rndouble colorR=255,colorG=255,colorB=255;rn CPen* oldPen;rn rn for(int i2=0;iSetTextColor(RGB(0,0,250));rn pdcView->BitBlt(0, 0, rt.Width(), rt.Height(), &m_dcMemory, 0, 0, SRCCOPY);rn rnrn[/code]
简单的登陆页面到底哪里错了?
rn rn 请输入用户名和密码rn rn rn rn rn 身 份 验 证 rn rn  rn " name="MyForm" onsubmit ="return ChkFields()">rn 用户名: rn 密 码: rn rn rn  rn rn rn rnrnrn错误类型:rnMicrosoft VBScript 编译器错误 (0x800A0<em>4</em>00)rn/案例二十五/LOGIN.ASP, 第 65 行rnEnd Ifrnrnrn浏览器类型:rnMozilla/<em>4</em>.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.<em>4</em>322) rnrn页:rnPOST 50 bytes to /案例二十五/LOGIN.ASPrnrnPOST 数据:rnUserName=%B<em>4</em>%EF%B5%BD&UserPwd=dasf&B1=%CC%E1%BD%BB
这段代码到底哪里错了????
#pragma oncernrn#include "stdafx.h"rn#include rnrnclass iStackrnrnpublic:rn iStack(void);rnrn iStack( int capacity ) : _stack( capacity ), _top( 0 ) rnrn bool pop( int &value );rn bool push( int value );rnrn bool full() return _top < _stack.size()-1 ? false : true; ;rn bool empty() return _top ? false : true ;;rn void display();rnrn int size() return _top; ;rnrn ~iStack(void);rnrnprivate:rn int _top;rn vector _stack;rn;rnrn编译老是提示缺少iStack::vector存储类或类型说明符,不可能呀,明明已经加了了,请大家帮忙看看<em>到底</em>是怎么回事?
郁闷:SQL 到底哪里错了???
我在SQL2005服务器上建立一个SP,其中有简单语句,但是确<em>出错</em>:rnrnrnselect CutLotNo,rn 0 as Mocutlotno, --实体表中没有此列rn Mono,rn Mocolor,rn Mosize,rn ItemNo,rn ItemCard,rn InitQty,rn CurrentQty,rn 0 as OpQty,rn 0 as BalanceQty,rn '' as InSewwing,rn '' as Remark rninto #CardItemrnfrom itemrnwhere cutlotno in (select cutlotno from #CutlotNo)rnrnrn--执行以下这条语句时却<em>出错</em>:rnupdate #CardItem set Mocutlotno=1rnrn错误信息如下:rnMsg 207, Level 16, State 1, Procedure SP_MOClose_GPRO, Line 0rnInvalid column name 'Mocutlotno'.
数据库添加,到底哪里错了?
用前三个的时候可以,多加了一个from字段,添加就出现错误。rn请高手帮忙看看<em>到底</em>哪里错了?rnrn rnrn错误信息:rn分析<em>失败</em>: 没有较好格式化 (行号: 7, 字符: 33)rn Microsoft OLE DB Provider for ODBC Driversrn '800<em>4</em>0e1<em>4</em>'rn[Microsoft][ODBC Microsoft Access Driver] INSERT INTO �����?����
谁知道68行到底哪里错了?
谁知道68行<em>到底</em>哪里错了?用socket做超市管理系统java编程,输入产品编号会提示商品,但是却有报错,怎么回事?![图片说明](https://img-ask.csdn.net/upload/201512/10/1<em>4</em><em>4</em>9681936_7<em>4</em><em>4</em>570.png)
这个程序到底哪里错了
这个程序<em>到底</em>哪里错了,找了很久找不出来,大家帮忙找找,谢谢rnrnrnrnrn rn rn rn rn
锁相频率合成器BU2614实现FM 调谐器下载
介绍了一种锁相频率合成器BU2615,结合专用收音模块CXA1019S、单片机AT89C51能实现FM 调谐器,该调谐器能实现频率扫描、锁定和显示等功能。使用串行EZROM 存储必要数据,实现数据掉电保护功能,并给出了实际电路与主程序框图。 相关下载链接:[url=//download.csdn.net/download/song4412719/2590171?utm_source=bbsseo]//download.csdn.net/download/song4412719/2590171?utm_source=bbsseo[/url]
C++Primer(第4版)习题解答(有目录) 完整版下载
word版的C++ Primer(第4版)习题解答(有目录) 完整版。不下别后悔。 相关下载链接:[url=//download.csdn.net/download/xiefy21/4215685?utm_source=bbsseo]//download.csdn.net/download/xiefy21/4215685?utm_source=bbsseo[/url]
简单的税收PB软件源程序下载
课后做的,简单的税收PB软件源程序,计算劳务报酬、稿酬、特许权使用费的应交税费。PS:很基本的,很简单。 相关下载链接:[url=//download.csdn.net/download/qq_27076643/8575067?utm_source=bbsseo]//download.csdn.net/download/qq_27076643/8575067?utm_source=bbsseo[/url]
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview
我们是很有底线的