请问哪里错了? [问题点数:0分]

Bbs1
本版专家分:2
结帖率 98.33%
Bbs1
本版专家分:2
SPIN控件的使用问题
我的程序<em>哪里</em><em>错了</em>为什么不能调节,,不知道<em>哪里</em>出<em>错了</em>,请大家看看,要写20字真是烦人
ajax错误解图
这个市我的ajax错误解图。不知道<em>哪里</em><em>错了</em>
众数的程序(使用到快速排序)
以下这个众数的程序,帮忙看下<em>哪里</em>出<em>错了</em>?
请问这段哪里错了
If Session("AnonUID") = "" Thenrn Session("AnonUID") = Guid.NewGuidrn Return Session("AnonUID").ToStringrn End Ifrn编译的时候出错提示为:运算符对 类型“Guid” 和 字符串“” 无效
请问哪里错了?
[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", 2400,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]
请问服务器配置哪里错了
在我新配置的服务器下,我能用PHP函数正常的连接数据库,可是却无法查询,同样的页面到另一个服务器下,却一切正常。<em>请问</em>服务器配置<em>哪里</em><em>错了</em>,谁知道啊?
请问if语句哪里错了?
[code=sql]rnALTER PROCEDURE [CS_RepClient]rn(rn@P_ListMode INT=3, --列表方式 1:全部列表 2:部分列表 3: 分级显示rn@P_ParentID VARCHAR(128)='000000', --parent_idrn@P_ZeroStop INT=0, --0为不显示停用,其它为显示rn@P_SeekText VARCHAR(8000)='', --搜索文本rn@P_condition VARCHAR(8000)='' --搜索完整and开头条件rn)rnrnASrnrnSET NOCOUNT ONrnDECLARE @V_SQL_Script VARCHAR(8000)rnDECLARE @V_SQL_ListMode VARCHAR(300)rnDECLARE @V_SQL_ZeroStop VARCHAR(50)rnDECLARE @V_SQL_condition VARCHAR(8000)rnrnif @P_ParentID='' set @P_ParentID='000000'rnif @P_ListMode not in(1,2,3) set @P_ListMode=3rnif @P_ListMode=3 set @V_SQL_ListMode=' and parent_id='''+@P_ParentID+'''' rnif @P_ListMode=1 set @V_SQL_ListMode=' and dbo.ChildFlag(2,class_id)='''''rnif @P_ListMode=2 set @V_SQL_ListMode=' and dbo.ChildFlag(2,class_id)='''' and left(class_id,len('''+@P_ParentID+'''))='''+@P_ParentID+'''' rnif @P_ZeroStop=0 set @V_SQL_ZeroStop=' and stop=0'rnrnif @P_SeekText<>''rnBEGINrn select @V_SQL_ListMode='' select @P_condition='' select @V_SQL_condition='rn and dbo.ChildFlag(2,class_id)='''' and (serial_number like ''%' + @P_SeekText+ '%'' rnor [name] like ''%' + @P_SeekText+ '%'' or [alias] like ''%'+ @P_SeekText+ '%'' rnor [phone] like ''%'+ @P_SeekText+'%'' or [address] like ''%'+ @P_SeekText+'%'' rnor [Contact] like ''%'+ @P_SeekText+'%'' or [fax] like ''%'+ @P_SeekText+'%'' rnor [Email] like ''%'+ @P_SeekText+'%'' or [QQ] like ''%'+ @P_SeekText+'%'' rnor [comment] like ''%'+ @P_SeekText+'%'' or [pinyin] like ''%'+ @P_SeekText+'%'')'rnendrnrnselect @V_SQL_Script='rnSELECT dbo.ChildFlag(2, class_id) AS ChildFlag, Client_id, Class_id, parent_id, serial_number, name, alias, pinyin, (case when stop<>0 then ''是'' ELSE '''' END) as [stop], phone, address, Contact, fax, Email, QQ, comment, CreditVaR, jklimitrnFROM ClientsrnWHERE (Client_id <> 1) '+@V_SQL_ListMode+@V_SQL_ZeroStop+@V_SQL_condition+@P_conditionrnrnPRINT @V_SQL_ScriptrnEXEC(@V_SQL_Script)rnrn--返回成功rnSUCCEE:rn RETURN 0rnrnrn--以上存储过程(执行:exec [CS_RepClient] 1,'',0,'','')为什么不能执行到最后的PRINT @V_SQL_Script,存储过程序如果修改才能行。rnrn.rnrn[/code]
请问哪里错了?急~~~~
我定义了一个函数rnprocedure TPipe.GetQ1(D:Array [1..6] of Double;L:Array [1..6] of Double;qsum:Double;q2:Double;var q1:double)rn编译提示[Error] 'OF' expected but '[' foundrn<em>请问</em>该如何修改啊?
请问这个哪里错了???
[code=C/C++]rn#include rn#include rnrn#define BASEPAYA 8.75;rn#define BASEPAYB 9.33;rn#define BASEPAYC 10.00;rn#define BASEPAYD 11.20;rn#define BASEHRS 40;rn#define OVERTIME 1.5;rn#define AMT1 300;rn#define AMT2 150;rn#define RATE1 0.15;rn#define RATE2 0.20;rn#define RATE3 0.25;rnrnvoid memu(void);rnchar get_first(void);rnint main(void)rnrn char choice;rn double hours;rn double pay;rn double taxes;rn double gross;rn double net;rnrn memu();rn while((choice = get_first()) != 'q')rn rn if(isspace(choice))rn continue;rn choice = tolower(choice);rn switch(choice)rn rn case 'a': pay = BASEPAYA;rn break;rn case 'b': pay = BASEPAYB;rn break;rn case 'c': pay = BASEPAYC;rn break;rn case 'd': pay = BASEPAYD;rn break;rn default : printf("Please resume enter:");rn memu();rn continue;rn rn printf("Please enter work time:\n");rn scanf("%lf", &hours);rn // 总额rn if(hours )rn continue;rn return ch;rnrnrn[/code]rnvc++6.0编译报错,貌似是if和else那段出错。。可我不知道错在<em>哪里</em>。。
请问哪里错了
代码:rnrn错误:rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrn服务器对象 错误 'ASP 0177 : 800401f3' rnrnServer.CreateObject 失败 rnrn/conn.asp,行4 rnrn无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。 rn
请问哪里错了啊?
cmd.Parameters.Add( new OleDbParameter("@Con",OleDbType.Integer));rncmd.Parameters["@Con"].Value = 1;rnsql = "Insert Into tb_Article(Title) Values(@Con)";rncmd.CommandText = sql;rnnReturn = cmd.ExecuteNonQuery();rnrn报错说@Con没有声明,是为什么呢?rn
请问哪里错了
在数据库的表中还有id这列,我把它设置为int,自增rnrnPrivate Sub GetConnected()rn Set cn = New ADODB.Connectionrn cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=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
请问哪里错了?
#include rnvoid setcursor(unsigned char top, unsigned char bottom)rnrn union REGS inreg,outreg;rn inreg.h.ch=top;rn inreg.h.cl=bottom;rn inreg.h.ah=1;rn int86(0x10, &inreg, &outreg);rnrn可以帮我改下吗?rnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2449 cl.c 4: Size of 'inreg' is unknown or zero in function setcursorrnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2449 cl.c 4: Size of 'inreg' is unknown or zero in function setcursorrnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2449 cl.c 4: Size of 'outreg' is unknown or zero in function setcursorrnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2450 cl.c 4: Undefined structure 'REGS' in function setcursorrnError E2449 cl.c 4: Size of 'outreg' is unknown or zero in function setcursorrnError E2451 cl.c 5: Undefined symbol 'h' in function setcursorrnError E2451 cl.c 6: Undefined symbol 'h' in function setcursorrnError E2451 cl.c 7: Undefined symbol 'h' in function setcursorrnWarning W8065 cl.c 8: Call to function 'int86' with no prototype in function setrncursorrnWarning W8057 cl.c 9: Parameter 'top' is never used in function setcursorrnWarning W8057 cl.c 9: Parameter 'bottom' is never used in function setcursorrn*** 13 errors in Compile ***
请问这里哪里错了
Query1->SQL->Add('select * from Delphi where'+''''edit1->Text''''+');rn<em>请问</em>这里<em>哪里</em><em>错了</em>?请帮我改成正确的句子!谢谢!
请问下面哪里错了~
rnrn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80040E10)rn/xlwb/usergoin.asp, 第 19 行rn请帮帮忙`~~~谢谢~~~`
请问到底是哪里错了
现在有一index.htm页面,其中包含一layer id="wa" ,layer中有一iframe,id="if1",location="a.htm",a.htm中有一form id="form1",form内有一table id="frm1tb1".现在我想在index页面中取得frm1tb1的clientheight,怎么取?rnrn是不是document.if1.document.all('frm1tb1').clientheight?rn
请问下面哪里错了
[code=perl]rnpackage com.machine.study;rnrnrnimport java.awt.BorderLayout;rnimport java.awt.Container;rnimport java.awt.Font;rnimport java.awt.TextArea;rnimport java.awt.Toolkit;rnimport java.awt.event.ActionEvent;rnimport java.awt.event.ActionListener;rnimport java.awt.event.InputEvent;rnimport java.awt.event.KeyEvent;rnimport java.awt.event.WindowAdapter;rnimport java.awt.event.WindowEvent;rnrnimport javax.swing.JFrame;rnimport javax.swing.JMenu;rnimport javax.swing.JMenuBar;rnimport javax.swing.JMenuItem;rnimport javax.swing.JPopupMenu;rnimport javax.swing.JScrollPane;rnimport javax.swing.JTextArea;rnimport javax.swing.KeyStroke;rnimport javax.swing.ScrollPaneConstants;rnrnpublic class StudyTest extends JFrame //继承Jframe父类rn private JMenu fileMenu;rn private JMenuItem menuOpenTrain;rn private JMenuItem menuOpenPredict;rn rn private JMenu runMenu;rn private JMenuItem firstMenu;rn private JMenuItem secondMenu;rn private JMenuItem thirdMenu;rn private JMenuItem fourthMenu;rn rn private JMenu aboutMenu;rn private JMenuItem introduceMenu;rn private JMenuItem hearGetMenu;rn rn private JTextArea showArea;rn rn private JPopupMenu popUpMenu;rn rn public StudyTest()rn super("机器学习与测试");rn int w = (Toolkit.getDefaultToolkit().getScreenSize().width - WIDTH) /4;rn int h = (Toolkit.getDefaultToolkit().getScreenSize().height - HEIGHT) /5;rn setLocation(w, h);//使界面在屏幕中间显示rn setUpUIComponent(); //界面设计函数rn setUpEventListener(); //事件处理rn setVisible(true); //显示窗口rn rn rn private void setUpUIComponent() //界面设计函数rn setSize(640,480);//设计主界面的大小rn //菜单栏rn JMenuBar menuBar =new JMenuBar();rn //设置文件菜单rn JMenu fileMenu =new JMenu("文件"); rn JMenuItem menuOpenTrain =new JMenuItem("载入训练集");//打开训练集rn //快捷键设置rn menuOpenTrain.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z,InputEvent.CTRL_MASK));rn JMenuItem menuOpenPredict =new JMenuItem("载入测试集");//打开测试集rn //设置快捷键rn menuOpenPredict.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,InputEvent.CTRL_MASK));rn fileMenu.add(menuOpenTrain); //显示在主界面上rn fileMenu.addSeparator(); //分隔线rn fileMenu.add(menuOpenPredict); //显示在主界面上rn fileMenu.addSeparator(); //分隔线rn //设置执行菜单rn JMenu runMenu =new JMenu("执行");rn JMenuItem firstMenu =new JMenuItem("采用线性核函数");//采用线性核函数rn JMenuItem secondMenu =new JMenuItem("采用多项式核函数");//采用多项式核函数rn JMenuItem thirdMenu =new JMenuItem("采用RBF核函数");//采用RBF核函数rn JMenuItem fourthMenu =new JMenuItem("十折交叉验证");//打开训练集rn runMenu.add(firstMenu); rn runMenu.addSeparator();rn runMenu.add(secondMenu); rn runMenu.addSeparator();rn runMenu.add(thirdMenu); rn runMenu.addSeparator();rn runMenu.add(fourthMenu); rn runMenu.addSeparator();rn //设置关于菜单rn JMenu aboutMenu=new JMenu("关于");rn JMenuItem introduceMenu =new JMenuItem("关于程序");rn JMenuItem hearGetMenu =new JMenuItem("关于设计心得");rn aboutMenu.add(introduceMenu);rn aboutMenu.add(hearGetMenu);rn menuBar.add(fileMenu);//显示文件菜单rn menuBar.add(runMenu);//显示执行菜单rn menuBar.add(aboutMenu);//显示关于菜单rn setJMenuBar(menuBar);//设置菜单栏rn //结果显示区域设置rn JTextArea showArea =new JTextArea();//结果显示区域rn showArea.setFont(new Font("宋体",Font.PLAIN,16));//设置显示文字的书体rn showArea.setLineWrap(true); //设置自动换行rn //设置滚动条,已设置自动化换行就没有水平滚动条rn JScrollPane panel =new JScrollPane(showArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);rn Container contentPane =getContentPane();//在JFrame中获取ContentPanern contentPane.add(panel, BorderLayout.CENTER);rn popUpMenu =runMenu.getPopupMenu();rn rn rn private void setUpEventListener() //事件处理函数rn setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//单击X后关闭界面rn //菜单---载入训练集rn menuOpenTrain.addActionListener(rn new ActionListener() //事件监听器rn public void actionPerformed(ActionEvent e) rn openTrainFile(); //载入训练集函数 ------此处写上事件处理函数rn rn rn );rn rn protected void openTrainFile() //载入训练集函数rn // TODO Auto-generated method stubrn rn rnrn public static void main(String[] args) throws Exceptionrn new StudyTest();rn rnrnrnrn[/code]rn程序错误为:rnException in thread "main" java.lang.NullPointerExceptionrn at com.machine.study.StudyTest.setUpEventListener(StudyTest.java:109)rn at com.machine.study.StudyTest.(StudyTest.java:51)rn at com.machine.study.StudyTest.main(StudyTest.java:123)rn
请问这是哪里错了
struct StackStruct rn int* array;rn int sp;rn int size;rn;rntypedef StackStruct Stack;rnrn void initialize( Stack* s, int size ) rn s->array = new int[size];//为什么到这就<em>错了</em>?rn s->size = size;rn s->sp = 0; rnclass Queuernrnpublic:rn Queue(int size)rn rn initialize(_stack,size);rn rnprivate:rn Stack* _stack;rn;rnvoid main()rnrn Queue queue(15);rn
请问代码哪里错了??
[img=http://img.bbs.csdn.net/upload/201407/30/1406712468_435183.png][/img]rn这里总是提示错误rn类型 AsyncTask 中的方法 publishProgress(R.integer...)对于参数(int)不适用rn可是我看其他例子都是这么写的啊,求帮助!!!
请问谁知道哪里错了????
rn rnrnrn rn <%rn rs1.movenextrn bb1=bb1+1rn loop
请问到底是哪里错了
写了一个htm的表单,又写了以下jsp代码(multiinfo.jsp),可用jbuilder怎么也编译不过,编译器报错:rn"multiinfo.jsp": Error #: 300 : variable strCheckbox not found in class multiinfo_0002ejsp_jsprnrn~~~~~~~~~~~~~~~~rn);rn int size = strCheckBox.length;rnrn //将数据显示在客户端的浏览器上rn for(int i=0; irn~~~~~~~~~~~~~~~~~
请问这里哪里错了?
Set conn=Server.CreateObject("ADODB.connection")rnpv="provider=Microsoft.Jet.OLEDB.4.0;"rnpath="Data Source="&Server.MapPath("images/data/myaccessdata.mdb")rnconn.Open pv&pathrnSet rs=Server.CreateObject("ADODB.recordset")rnApplication.lockrnsql="select * from user"rnrs.Open sql,conn,3,3rnrn<em>请问</em>这里<em>哪里</em>有错,报说最后一行有错,实在是找不出原因,请帮忙,非常感谢!
请问哪里错了???
CREATE PROCEDURE UpdateTraffic rn @Start datetime,rn @endtime datetime,rn @Serial_no varchar(50),rn @Src_add varchar(50),rn @Src_port varchar(50),rn @Dst_addr varchar(50),rn @Dst_port varchar(50),rn @Date_len int,rn @IPPacketSerial int,rn @Data binary,rn @Flag bitrnASrn if not exists (select IPPacketSerial from Traffic rn where IPPacketSerial = @IPPacketSerial)rnrn beginrn if @Flagrn beginrn insert Traffic (Start,endtime,Serial_no,Src_add,Src_port,Dst_addr,Dst_port,Date_len,IPPacketSerial,Data)rn values(@Start,@endtime,@Serial_no,@Src_add,@Src_port,@Dst_addr,@Dst_port,@Date_len,@IPPacketSerial,@Data)rn rn endrn elsern beginrn insert Traffic (Start,endtime,Serial_no,Src_add,Src_port,Dst_addr,Dst_port,Date_len,Data)rn values(@Start,@endtime,@Serial_no,@Src_add,@Src_port,@Dst_addr,@Dst_port,@Date_len,@Data)rn endrn endrn rn else rn beginrn if @Flagrn beginrn update Traffic set Date_len = Date_len + @Date_len , endtime = @endtime rn where IPPacketSerial = @IPPacketSerialrn endrn elsern beginrn update Traffic set Date_len = Date_len + @Date_len , endtime = @endtime , IPPacketSerial = null rn where IPPacketSerial = @IPPacketSerialrn endrn endrnrn提示说我的错误在 begin,else ,begin else 附近。<em>请问</em><em>哪里</em><em>错了</em>?
请问哪里错了???
rn想编写独立模块,不知道下面<em>哪里</em>出<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
请问这是哪里错了?
<em>请问</em>一下代码<em>哪里</em>有问题?我想在状态栏显示当前鼠标位置rn[code=C/C++]void CStyleView::OnMouseMove(UINT nFlags, CPoint point)rnrn // TODO: 在此添加消息处理程序代码和/或调用默认值rn CString str;rn str.Format(L"x:%d,y:d%",point.x,point.y);rn ((CMainFrame*)GetParent())->m_wndStatusBar.SetWindowText(str);rn CView::OnMouseMove(nFlags, point);rn[/code]我的环境是VS2010 可以正常编译但是我把鼠标一移动到窗口中就会报错:rn(((state == ST_NORMAL) || (state == ST_TYPE))rnrn谢谢
请问哪里错了??
ALTER PROCEDURE dbo.ProcSearchrn(rn @SearchChar NVarChar(30),rn @PageSize int,rn @PageIndex int,rn @DoCount bitrn)rn/*rn (rn @parameter1 datatype = default value,rn @parameter2 datatype OUTPUTrn )rn*/rnASrnrn IF @DoCount = 1rn BEGINrn select count(ContentURL) from rn (rn SELECT FT_TBL.ContentURLrn FROM Content FT_TBL rn INNER JOINrn FREETEXTTABLE (Content, *, @SearchChar) AS KEY_TBLrn ON FT_TBL.ArticalID = KEY_TBL.[KEY]rn )rn ENDrn ELSErn beginrn declare @IndexTable table(ID int identity(1,1),nID int)rn declare @PageLowerBound intrn declare @PageUpperBound intrn set @PageLowerBound=(@PageIndex-1)*@PageSizern set @PageUpperBound=@PageLowerBound+@PageSizern set rowcount @PageUpperBoundrn insert into @IndexTable(nID) rn (rn SELECT FT_TBL.ArticalIDrn FROM Content FT_TBL rn INNER JOINrn FREETEXTTABLE (Content, *, @SearchChar) AS KEY_TBLrn ON FT_TBL.ArticalID = KEY_TBL.[KEY]rn )rn select O.* from rn (rn SELECT KEY_TBL.RANK, FT_TBL.Title,rn FT_TBL.ContentURL,rn FT_TBL.Author,rn FT_TBL.Description,rn FT_TBL.JoinDate,rn FT_TBL.ContentType,rn TempText = SUBSTRING(FT_TBL.Text,CHARINDEX(@SearchChar,FT_TBL.Text)-60,120),rn FT_TBL.TopicName,rn FT_TBL.SubTopicNamern FROM Content FT_TBL rn INNER JOINrn FREETEXTTABLE (Content, *, @SearchChar) AS KEY_TBLrn ON FT_TBL.ArticalID = KEY_TBL.[KEY]rn ) O,@IndexTable T where O.ArticalID=T.nIDrn and T.ID>@PageLowerBound and T.ID<=@PageUpperBound order by T.IDrn endrn SET NOCOUNT OFFrn rn谢谢
说“hello”-字符串
题号: 10073 时限:1000ms 限制内存:32768KB 题目: 说“hello” 描述 小明想要用键盘打出“hello”, 但是打<em>错了</em>, 现在已知小明打出的字符串, <em>请问</em>小明是否可以仅通过删除其中的一些字符, 使这个字符串变成“hello”. 输入格式 一个字符串, 长度范围为[1, 1000], 表示打出的字符串, 仅含小写字母. 输出格式 如果可以变成“hello”, 输...
jquerymobile1.3.2与1.5.4展现异常
真希望是我<em>哪里</em>搞<em>错了</em>,而不是jquerymobile自身提供的js和css文件有问题。
TXT在线小说管理器
不知道<em>哪里</em>写<em>错了</em>,各位大神帮忙指点下,告诉怎么进行修改
文件内容
帮我看看<em>哪里</em><em>错了</em>,为什么不能连接数据库呢?一运行就出错
手写PE结构,提示不是有效的win32程序
自己模仿别人的写的,不知道<em>哪里</em>出<em>错了</em>,希望可以帮下
请问这个哪里错了..很简单的!
lists是一个冒泡排序好的,从小到大的数组.我想按一个键,然后把他从大到小排序,显示在textBox1里rn[code=C#]rn string a = "";rn for (int aa = lists.Length - 1; aa < 0; --aa)rn rn a += Convert.ToString(lists[aa]) + " ";rn rn textBox1.Text = a;rn[/code]rnrn但是a最后是空白的,不知为什么?rn另外,可以用foreach做到这个效果吗?
请问哪里错了
vote_test.htm:rnrn[code=HTML]rnrn 讨个老婆需要多少钱rn rn rn rn rn rnrnrn rn rn 你认为结婚成本比去年增加了多少?rn rn rn rn投票总人数:1344 rnrn没增加,结婚一点压力也没有rnrn         rn2票 (2%) rnrn增加了,已经超出自己的承担rnrnrn         rn2票 (2%) rnrn不清楚rnrnrn         rn2票 (2%) rnrn增加了,但自己还可以承担rnrn         rn2票 (2%) rnrn面对生活成本压力,不想结婚了rnrn         rn2票 (2%) rn rn rn[投票截止时间:2008-12-05 14:19:39]rn rn rnrnrn[/code]rnrnrnvote_test.jsp:rn[code=Java]rnrn< 5; j++)rn if(j == voteid)rn str=str+j+",30%,";rn elsern str=str+j+",10%,";rnrnout.println(str);rn%>[/code]
请问这个程序哪里错了...
#include "stdafx.h"rn#include "cv.h"rn#include "cxcore.h"rn#include "highgui.h"rn#include "disjoint-set.h"rn#include rn#include rnusing namespace System;rnusing namespace std;rn#define width 512rn#define height 512rn#define cons 300//krn#define THRESHOLD(size, c) (c/size)rnrnstruct edgenodernrn int weight;rn long int begin,end;rn bool operator rnrnrn求高手指教。rnrn
菜鸟求助,请问哪里错了
当输入两个名字后,按enter键后,系统提示xxxxx内存 不能读。。。rn这是怎么回事,应该怎么办。rnrnrn#includern#includern#includernvoid change(char *f,char *s,char *t);rn int main()rn rn char f_n[60],s_n[60],m_n[60];rn rn fputs("enter frist name\n",stdout);rn gets(f_n);rn puts("enter second name");rn scanf("%s",s_n);rn printf("enter minder name");rn gets(m_n);rn change(f_n,s_n,m_n);rn return 0;rnrnrnrnvoid change(char *f,char *s,char *t)rnchar ptr[60];rn strncpy(ptr,f,1);rn strcat(ptr,". ");rn strncat(ptr,s,1);rn strcat(ptr,". ");rn strcat(ptr,t);rn printf("%s",ptr);rnrnrn
请问这两个语句哪里错了
tempteacher_id=request("teacher_id") rn sql="select * from execuplan where teacher_id="&"'"&tempteacher_id&"'"rn sql=sql&" select * from course join execuplan on course.course_id=execuplan.course_id"
请问,这个正则表达式,哪里错了
static void Main(string[] args)rn rn string pattern = @"\b+";rn Regex rgx = new Regex(pattern);rn string sentence = "dfgs4aer25#@";rn foreach (Match match in rgx.Matches(sentence)) //foreach遍历所有匹配项rn rn Console.WriteLine(match.Value); rn rn Console.ReadKey();rn rnrn这个正则表达式,是搜索字符串"dfgs4aer25#@"中的所有数字,应该是4和25,为什么最后没有输出结果呢?<em>哪里</em>出<em>错了</em>?
请问杭电1061哪里错了
#includernusing namespace std;rnint main()rnrn int t;cin>>t;rn int o[10][4]=0,1,6,2,4,8,1,3,9,7,6,4,5,6,1,7,9,3,6,8,4,2,1,9;rn while(t--)rn rn long n;int a;cin>>n;rn a=n%10; //a表示n的个位数;rn if(a==0||a==1||a==5||a==6)rn cout<
请问这是哪里错了 啊 ?????
从客户端(FreeTextBox1="...76.1万人。  ...")中检测到有潜在危险的 Request.Form 值。 rn说明: 请求验证过程检测到有潜在危险的客户端输入值,对请求的处理已经中止。该值可能指示危及应用程序安全的尝试,如跨站点的脚本攻击。通过在 Page 指令或 配置节中设置 validateRequest=false 可以禁用请求验证。但是,在这种情况下,强烈建议应用程序显式检查所有输入。 rnrn异常详细信息: System.Web.HttpRequestValidationException: 从客户端(FreeTextBox1="...76.1万人。  ...")中检测到有潜在危险的 Request.Form 值。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[HttpRequestValidationException (0x80004005): 从客户端(FreeTextBox1="...76.1万人。 rn  ...")中检测到有潜在危险的 Request.Form 值。]rn System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName)rn System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName)rn System.Web.HttpRequest.get_Form() +113rn System.Web.UI.Page.GetCollectionBasedOnMethod()rn System.Web.UI.Page.DeterminePostBackMode()rn System.Web.UI.Page.ProcessRequestMain()rn System.Web.UI.Page.ProcessRequest()rn System.Web.UI.Page.ProcessRequest(HttpContext context)rn System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()rn System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87rnrn rn
请问哪里错了呢?
显示结果是这样,Warning: fread(): supplied argument is not a valid stream resource in C:\wamp\www\pic\put_pic.php on line 8rn下面是我的代码rn
请问究竟是哪里错了..
[code=PHP]rnrn Movie Review Databasern rn rn $num_movies Moviesrn rn ENDHTML ;rn?>rn[/code]rnrn它就提示我rn[code=PHP]rnParse error: syntax error, unexpected $end in D:\Program Files\WEB\Apache\htdocs\Table\table2.php on line 43rn[/code]rn43行就是最后一行 : "?>"这个 rn rn Movie Titlern Year of Releasern Movie Lead Actorrn Movie Directorrn Movie Typern rn ENDHTML;rn while($row=mysql_fetch_assoc($result))rn extract($row) ;rn $table .= << $movie_namern $movie_yearrn $movie_directorrn $movie_leadactorrn $movie_typern rn ENDHTML ;rn rn $table .= <<
cn.cstp.org.exception.MyRuntimeException: 请问哪里错了
package cn.cstp.org.dao.imp;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnrnimport cn.cstp.org.conn.DBCONN;rnimport cn.cstp.org.dao.UserDAO;rnimport cn.cstp.org.exception.MyRuntimeException;rnimport cn.cstp.org.factory.DAOFactory;rnimport cn.cstp.org.vo.User;rnrnpublic class UserDAOIMP implements UserDAO rn private static final String isloginsql="selcet count(*) from t_user where username=? and password=? ";rn rn public boolean islogin(User user) rn boolean islogin=false;rn rn Connection conn=null;rn PreparedStatement ps=null;rn ResultSet rs=null;rn rn rn try rn conn= new DBCONN().getConnection();rn ps=conn.prepareStatement(this.isloginsql);rn ps.setString(1, user.getUsername());rn ps.setString(2, user.getPassword());rn rn rs=ps.executeQuery();rn if(rs.next())rn int i=rs.getInt(1);rn if(i>0)rn islogin=true;rn rn rn rn catch (SQLException e) rn e.printStackTrace();rn throw new MyRuntimeException(e.getMessage(),e);rn finallyrn rn close(conn, ps, rs);rn rn rn rn rn return islogin;rn rnrn private void close(Connection conn, PreparedStatement ps, ResultSet rs) rn try rn if(rs!=null)rn rs.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rn try rn if(ps!=null)rn ps.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rn try rn if(conn!=null)rn conn.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rnrnrnrnrnpublic static void main(String[] args)rn User user=new User();rn user.setUsername("admin");rn user.setPassword("admin");rn rn System.out.println(DAOFactory.getUserDAOIMP().islogin(user));rn rn rn rnrnrnrnrnrnrnrnrnrnrnrnrncn.cstp.org.exception.MyRuntimeException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'selcet * from t_user where username='admin' and password='admin'' at line 1rn cn.cstp.org.dao.imp.UserDAOIMP.islogin(UserDAOIMP.java:41)rn org.apache.jsp.do_005flogin_jsp._jspService(do_005flogin_jsp.java:71)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrncom.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'selcet * from t_user where username='admin' and password='admin'' at line 1rn sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn java.lang.reflect.Constructor.newInstance(Unknown Source)rn com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn com.mysql.jdbc.Util.getInstance(Util.java:381)rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)rn com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)rn com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)rn com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)rn com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)rn com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)rn com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)rn com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1885)rn cn.cstp.org.dao.imp.UserDAOIMP.islogin(UserDAOIMP.java:31)rn org.apache.jsp.do_005flogin_jsp._jspService(do_005flogin_jsp.java:71)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrn
请问哪里错了?急
我在oracle 8i上面写了一个触发器rn创建的时候没有错误提示rn但是在使用的时候却有问题了rn请帮忙看看rnrn使用时候的代码如下:rnrnupdate shenpyj set spbj='1' where gwid='1' and spr='10001' and bzid='100';rnrn出错提示如下:rnrnupdate shenpyj set spbj='1' where gwid='1' and spr='10001' and bzid='100'rn *rnERROR 位于第 1 行:rnORA-04091: 表 HUAXIAN.SHENPYJ 发生了变化,触发器/函数不能读rnORA-06512: 在"HUAXIAN.SHENPI", line 26rnORA-04088: 触发器 'HUAXIAN.SHENPI' 执行过程中出错rnrn触发器代码如下:rnrncreate or replace trigger shenpi After rnupdate on shenpyj rnfor each rowrnrndeclarern--声明一个ref游标rntype refcur_t is ref cursor;rnrefcur refcur_t;rnrn--本步骤里面未完成审批的人数rnunfinished_person_count number;rnrn/*当前步骤的并或关系*/rnnow_buz_relation char(1);rnrn/*下一个步骤的ID,当这个步骤是最后一个步骤的时候rn该值与当前步骤的步骤ID一致*/rnnext_buz_id number;rnrn/*下一步骤的人员列表*/rnnext_buz_ids varchar2(1000);rnrn/*下一个步骤的人员数*/rnnext_buz_id_count number;rnrnspr varchar2(30);rnbeginrnrn/*初始化next_buz_id*/rnselect min(bzid) into next_buz_id from shenpyj where gwid=:new.gwid and bzid>=:new.bzid;rnrn--初始化now_buz_relationrnselect bh into now_buz_relation from liucxj where bzid=:new.bzid;rnrnrn--初始化unfinished_person_countrnselect count(*) into unfinished_person_count from shenpyj where gwid=:new.gwid and bzid=:new.bzid and spyj=0;rnrn--初始化next_buz_idsrnopen refcur forrn select spr from shenpyj where gwid=:new.gwid and bzid=next_buz_id order by 1;rnwhile refcur%found loop rn fetch refcur into spr;rn next_buz_ids:=next_buz_ids||','||spr;rnend loop;rnclose refcur;rnrn--当这个步骤只有一个人的时候rnif now_buz_relation='2' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern --如果不是最后一个步骤rn update gongw set dspr=next_buz_ids where gwid=:new.gwid;rn end if;rn--如果当前步骤是或关系的话rnelsif now_buz_relation='1' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern update gongw set dspr=next_buz_ids where gwid=:new.gwid;rn end if;rn--当前步骤的关系是顺序关系的话 rnelsif now_buz_relation='0' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果本步骤中所有的人都已经处理完的话rn if unfinished_person_count=0 thenrn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern --如果不是最后一个步骤的话rn update gongw set dspr=next_buz_ids where gwid=:new.gwid; rn end if;rn elsern --在待审批人中删除本人rn update gongw set dspr=replace(dspr,:new.spr||',') where gwid=:new.gwid; rn end if; rnend if;rnend;
请问哪里错了,谢谢
/**rn * rn */rnpackage com.crawl.zongheng;rnrnimport java.util.HashMap;rnimport com.util.RegexUtil;rnimport com.crawl.CrawlBase;rn/**rn * @author Administratorrn *rn */rn//提取某网站某本书的信息rnpublic class IntroPage extends CrawlBasernprivate String url;rnprivate static HashMap params;rnprivate static final String AUTHOR =" ";rnprivate static final String NAME=" ";rnprivate static final String DESC = " ";rnprivate static final String TYPE =" ";rnprivate static final String LASTCHAPTER ="(.*?) ";rnprivate static final String WORDCOUNT ="";rnprivate static final String KEYWORDS =" (.*?)";rnprivate static final String KEYWORD ="(.*?)";rnprivate static final String CHAPTERLISTURL =" ";rnrnstaticrn params=new HashMap();rn params.put("Referer", "http://book.zongheng.com");rn params.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.104 Safari/537.36 Core/1.53.4033.400 QQBrowser/9.6.12624.400");rn params.put("Host","www.zongheng.com"); rnrnpublic IntroPage(String url)rn readPageByget(url,params,"utf-8");rn this.url=url;rnrn /**rn * @param argsrn */rnprivate String getName()rn return RegexUtil.getFirstString(getPageSourceCode(), NAME, 1);rnrnrnprivate String getAuthor() rn return RegexUtil.getFirstString(getPageSourceCode(), AUTHOR, 1);rnrnrnprivate String getDesc() rn return RegexUtil.getFirstString(getPageSourceCode(), DESC, 1);rnrnrnprivate String getType() rn return RegexUtil.getFirstString(getPageSourceCode(), TYPE, 1);rnrnrnprivate String getLastCharpter() rn return RegexUtil.getFirstString(getPageSourceCode(), LASTCHAPTER, 1);rnrnrnprivate int getWordCount() rn String wordCount = RegexUtil.getFirstString(getPageSourceCode(), WORDCOUNT, 1);rn return Integer.parseInt(wordCount.trim());rnrnrnprivate String getKeyWordStr() rn return RegexUtil.getFirstString(getPageSourceCode(), KEYWORDS, 1);rnrnrnprivate String getKeyWord() rn return RegexUtil.getString(getKeyWordStr(), KEYWORD, " ", 1);rnrnrnprivate String getChapterListUrl() rn return RegexUtil.getFirstString(getPageSourceCode(), CHAPTERLISTURL, 1);rnrn public static void main(String[] args) rn // TODO Auto-generated method stubrn IntroPage introPage = new IntroPage("http://book.zongheng.com/book/712549.html");rn System.out.println(introPage.getName());rn System.out.println(introPage.getAuthor());rn System.out.println(introPage.getDesc());rn System.out.println(introPage.getType());rn System.out.println(introPage.getLastCharpter());rn System.out.println(introPage.getWordCount());rn System.out.println(introPage.getKeyWord());rn System.out.println(introPage.getChapterListUrl());rn rnrn输出结果以及报错是:rn[img=http://img.bbs.csdn.net/upload/201711/13/1510562555_850249.png][/img]rn首先这些字符不知道为什么出现?还有应该有8个结果,可是我这里似乎只显示了5个。以及出现了其他异常。谢谢大神了。
请问这个嵌套查询哪里错了
select @sTableName='tInOrder'rnselect @dBillDate='20040704'rnrnexec('select count(*) from '+@sTableName+' where BillNo in rnselect BillNo from '+@sTableName+' where left(BillNo,8)='+@sBiLLNo)rn<em>请问</em>这个嵌套查询<em>哪里</em><em>错了</em>,应该如何写?rn
请问这句代码哪里错了
var divs = $("#date_text_$dateCheckId").children("div"); rn for(x in divs)rn if(divs[x].text() == div_val.text())rn div_flag=true;rn break;rn rn rn if(!div_flag)rn $("#date_text_$dateCheckId").append(div_val);rn rn rnrn<em>请问</em>这段代码<em>哪里</em><em>错了</em>?显示divs[x].text() is not function? 谢谢
javabean 编译出错,请问哪里错了?
package richq_hezuo;rnrnimport java.io.*;rnimport javax.servlet.http.*;rnimport java.sql.*;rnrnpublic class dbconn implements HttpSessionBindingListenerrnrn private Connection conn = null; //与资料库连结有关的Bean属性rnrn public dbconn() //在建构子中完成资料库连结rn rn BulidConnection(); //建立资料库连结rn rnrn private void BulidConnection() //建立资料库连结的方法rn rn tryrn Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");rn String url="jdbc:microsoft:sqlserver://admin:1433;DatabaseName=hezuo_emp";rn String user="sa";rn String password="823923";rn conn= DriverManager.getConnection(url,user,password);rn rn catch(Exception ex)rn rn System.out.println(ex.toString());rn rn rnrn public String setcn(String str)rn rn tryrn rn String temp_p = str;rn byte[] temp_t = temp_p.getBytes("ISO8859-1");rn String temp = new String(temp_t);rn return temp;rn rn catch(Exception e)rn rn return null;rn rn rnrn public Connection getConnection()rn rn if(conn == null) //若con为null时, 重新建立资料库连结rn BulidConnection();rn return this.conn;rn rnrn public void close()rn rn tryrn conn.close(); //关闭Connection物件rn conn = null;rn rn catch(SQLException sex)rn rn System.out.println(sex.toString());rn rn rnrn public void valueBound(HttpSessionBindingEvent event) //当物件加入session时, 将自动执行此函数rnrn public void valueUnbound(HttpSessionBindingEvent event) //当session物件消灭时, 将自动执行此函数rn rn if(conn != null)rn close(); //呼叫close方法rn rnrn public Statement setrs()rn rn Connection mconn = this.getConnection();rn Statement mstmt =null;rn tryrn rn mstmt = mconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);rn rn catch(SQLException e)rn rn return mstmt;rn rnrn
请问一下哪里错了呢?
“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn编译错误 rn说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 rnrn编译器错误信息: CS1026: 应输入 )rnrn源错误:rnrn rnrn行 226: rn行 227: rn行 228:管理员菜单:', 'pass','width=350,height=150,resizable=1')">回复 删除rn行 229: rn行 230: rn rnrn源文件: c:\inetpub\wwwroot\guestbook.aspx 行: 228 rnrnrn', 'pass','width=350,height=150,resizable=1')">回复 删除rnrn<em>请问</em>一下<em>哪里</em><em>错了</em>呢?
着急~~请问哪里错了??
我的页面HTML代码:rnrnrn new document rnrnrn rn rnrnrnrn rnrnrn<em>请问</em>为什么不会弹出对话框??<em>哪里</em>得错误??rn谢谢
请问这个结构体哪里错了
#include rnvoid main()rnrn struct packetrn rn string hash_data;//错误提示处rn packet *left_child;rn packet *right_child;rn packet_tree[4][8];rnrn编译出错:提示两个错误:rn1.C++ does not support default-intrn2.missing ';'before identifier hash_data;rnrn请高手指教。rn
请问这个地方哪里错了
[code=C/C++]rn#include rnusing namespace std;rnrn#define OK 1rn#define OVERFLOW -1rntypedef int status;rntypedef char TElemType;rntypedef struct BiTNode //二叉树结构体rn TElemType data;rn struct BiTNode *lchild,*rchild;rn status lc,lr;rnBiTNode,*BiTree;rnrnBiTNode *pre;rnstatus CreateBiTree(BiTree *T) //先序建立二叉树rn char ch;rn scanf("%c",&ch);rn if(ch==' ') *T=NULL;rn elsern (*T)=(BiTree)malloc(sizeof(BiTree));rn (*T)->data=ch;rn (*T)->lc=0;rn (*T)->lr=0;rn CreateBiTree(&((*T)->lchild));rn CreateBiTree(&((*T)->rchild));rn rn return OK;rn rnrnrnvoid InitHead(BiTree *T) //建立头结点rn if(T!=NULL)rn (*T)=(BiTree)malloc(sizeof(BiTree));rn (*T)->rchild = (*T);rn (*T)->lchild = NULL; rn (*T)->lc=0; rn (*T)->lr=0;rn rnrnrnvoid CreateThread(BiTree p)rn if(p!=NULL)rn CreateThread(p->lchild);rn if(p->lchild==NULL)rn p->lc=1;p->lchild=pre;rn rn if(pre->rchild==NULL)rn pre->rchild=p;pre->lr=1;rn rn pre=p;rn CreateThread(p->rchild);rn rnrnrnvoid ThreadSearch(BiTree T,BiTree h)rn while(T->lchild!=h&& T->lc!=1)T->lchild;rn cout << T->data;rn while(T->rchild!=T && T->lr==1)cout lchild=t;rn h->lc=1;rn p=h;pre=h;rn CreateThread(p->lchild);rn pre->lr=1;rn pre->rchild=h;rn h->rchild=pre;rn ThreadSearch(h,h->lchild);rn return 0;rnrnrnrn[/code]rn这个线索化实现<em>哪里</em><em>错了</em>
请问这段代码哪里错了
[color=#FF00FF]<em>请问</em>这段代码<em>哪里</em><em>错了</em>,你们可以上机试一下 怎么改 编译器报错:错误 1 可访问性不一致: 参数类型“delete2.liwei”比方法“delete2.liweike.lwk(delete2.liwei)”的可访问性低[/color] rnrnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnusing System.Threading.Tasks;rnrnnamespace delete2rnrn class Programrn rn static void Main(string[] args)rn rn liweike a = new liwei();rn liwei b = new liwei();rn b.lwk((liwei)a);rn rn ((liwei)a).lwk((liwei)a);rn a.A(); rn a.lwk(b);rn rn rn rn public interface liweikern rn void A(); void lwk(liwei a);rn rn class liwei : liweikern rn public void A()rn Console.WriteLine("啦啦啦"); rn public void lwk(liwei a) rn rn a.A();rn rn rnrnrn
请问这段哪里错了
rn dasdaDrnrn
请问这个程序哪里错了!!
#include "stdio.h"rn#include "alloc.h"rn#define LIMIT 9rn#define ERROR printf("out of memory\n");return;rnvoid main()rnrn char *p,*q,*aux;rn p=(char *)malloc(LIMIT);/*申请第一个存储块*/rn if (p==NULL)rn ERRORrn for (aux=p;aux=q;aux--)/* 逆向输出*/rn putchar(*aux);rn putchar('\n');rn free(p);/*释放空间*/rn free(q);rnrnrn<em>请问</em>这个程序<em>哪里</em><em>错了</em>!!我不知道怎么看都看不出来!我是菜鸟!
请问哪里错了呢?
-
关于类的,请问哪里错了
#include rn#include rnusing namespace std;rnclass C_cakernrnprivate:rn int name;rn int number;rnpublic:rn C_cake();rn void inputit();rn void reback();rn void print();rn;rnC_cake::C_cake()rnrn name=0;rn number=0;rnrnvoid C_cake::inputit(name,number)rnrn cout<<
请问同步代码块哪里错了
我看的视频教程,里面只要同步方法,这里同步代码块那里<em>哪里</em>些<em>错了</em>,取的时候还是信息不一一对应。rnrn[code=Java]rnpackage com.demo;rnclass Inforn private String name="李兴华";rn private String content="java老师";rn public void setName(String name)rn this.name=name;;rn public void setContent(String content)rn this.content=content;rn public String getName()rn rn return this.name;rn rn public String getContent()rn rn return this.content;rn rnrn//生产者不断的生产信息rnclass Producter implements Runnablern rn private Info info=null;rn public Producter(Info info)rn rn this.info=info;rn rn public void run() rn boolean flag=false;rn for(int i=0;i+this.info.getContent());rn rn rn rnrnrnpublic class Mytestone rn rn public static void main(String[] args) rn Info info=new Info();rn Producter pro=new Producter(info);rn Cusumer con=new Cusumer(info);rn new Thread(pro).start();rn new Thread(con).start();rn rn rnrnrn[/code]
请问以下步骤哪里错了
我是新手,今天新装了j2sdk1.4.0,设置了path(C:\j2sdk1.4.0\bin)和classpath(C:\j2sdk1.4.0\lib;C:\j2sdk1.4.0\java)路径,在记事本中写了如下代码rnclass haharn public static void main(String args[])rn System.out.println("haha");rn rnrnrn在命令提示符中编译rn当敲入javac haha.java后rn提示如下错误:rnerror:cannot read:haha.javarn1 error
请问这个代码哪里错了
import java.util.*;rnpublic class ss16 rn public static void main(String[] args) rn double sum;rn double[] num=new double[10];rn Scanner input=new Scanner(System.in);rn for(int i=0;i<10;i++)rn num[i]=input.nextDouble();rn rn for(int j=0;j
请问这个程序哪里错了
[code=C/C++]先上代码:rnrn//服务器端:rn//tryser.hrn#ifndef TRYSER_H_rn#define TRYSER_H_rnrn#include rn#include rn#include rn#include rn#include rn#include rnrnclass server : public QWidgetrnrn Q_OBJECTrnprivate:rn QLabel *label;rn QString nowWord;rn QTcpServer *tcpserver;rn QTcpSocket *tcpsocket;rn quint16 blockSize;rnpublic:rn server();rn ~server();rnrn public slots:rn void readMessage();rn void acceptConnection();rn;rnrn#endifrnrnrn//tryser.cpprnrn#include "tryser.h"rn#include rn#include rn#include rnrnserver::server()rnrn label = new QLabel;rn setWindowTitle("server");rn label->setText("emtpy");rn resize(200, 100);rnrn QHBoxLayout *mainLayout = new QHBoxLayout;rn mainLayout->addWidget(label);rn setLayout(mainLayout);rnrn tcpserver = new QTcpServer;rn tcpsocket = new QTcpSocket;rn if( !tcpserver->listen(QHostAddress::Any, 88888) )rn rn QMessageBox::warning(NULL, "error", "can not connect");rn close();rn return;rn rn blockSize = 0;rn connect(tcpserver, SIGNAL(newConnection()), this, SLOT(acceptConnection()));rnrnrnrnserver::~server()rnrnrnrnrnvoid server::acceptConnection()rnrn tcpsocket = tcpserver->nextPendingConnection();rn connect(tcpsocket, SIGNAL(readyRead()), this, SLOT(readMessage()));rn connect(tcpsocket, SIGNAL(error(QAbstractSocket::SocketError)),rn this, SLOT(displayError(QAbstractSocket::SocketError)));rnrnrnvoid server::readMessage()rnrn QDataStream in(tcpsocket);rn in.setVersion(QDataStream::Qt_4_0);rnrn if (blockSize == 0)rn rn if (tcpsocket->bytesAvailable() < (int)sizeof(quint16))rn return;rn in >> blockSize;rn rn if (tcpsocket->bytesAvailable() < blockSize)rn return;rn QString word;rn in >> word;rnrn label->setText(word);rnrnrnrn//客户端:rn//trycli.hrn#ifndef TRYCLI_H_rn#define TRYCLI_H_rnrn#include rn#include rn#include rn#include rn#include rn#include "ui_client.h"rnrnclass client : public QWidgetrnrn Q_OBJECTrnprivate:rn //clientWidget中只有三个QLineEdit和一个QPushButtonrn //分别是:ipAddressLineEdit,portLineEdit,stringLineEdit,startPushButtonrn Ui::clientWidget ui;rn QTcpSocket *tcpclient;rn quint16 blockSize;rnrnpublic:rn client();rn ~client();rnrn void sendMessage();rn public slots:rn void nnewConnect();rn rn;rnrn#endifrnrnrn//trycli.cpprn#include "trycli.h"rn#include rn#include rnrnclient::client()rnrn ui.setupUi(this);rn setWindowTitle("client");rnrn tcpclient = new QTcpSocket;rn ui.ipAddressLineEdit->setText("127.0.0.1");rn ui.portLineEdit->setText("88888");rnrn connect(ui.startPushButton, SIGNAL(clicked()),rn this, SLOT(nnewConnect()));rn connect(tcpclient, SIGNAL(connected), this, SLOT(sendMessage()));rnrnrnclient::~client()rnrnrnrnrnvoid client::nnewConnect()rnrn blockSize = 0;rn tcpclient->abort();rn tcpclient->connectToHost(ui.ipAddressLineEdit->text(),rn ui.portLineEdit->text().toInt());rn sendMessage();rnrnrnvoid client::sendMessage()rnrn QByteArray block;rn QDataStream out(&block, QIODevice::WriteOnly);rn out.setVersion(QDataStream::Qt_4_0);rnrn out << (quint16)0;rn QString message;rn message = ui.stringLineEdit->text();rn if(message.isEmpty())rn return;rn out << message;rn out.device()->seek(0);rn out << (quint16)(block.size() - sizeof(quint16));rnrn connect(tcpclient, SIGNAL(disconnected()),rn tcpclient, SLOT(deleteLater()));rn tcpclient->write(block);rn tcpclient->disconnectFromHost();rn[/code]rnrnmain.cpp就不帖出来了,反正没什么内容。rnrn这个程序的功能是让客户端向服务器发送一个字符串,但不知哪<em>错了</em>,只有第一次发送能成功,其他的都失败了rn请大家帮我看一下:这个程序错在哪了,应该怎么改?rnrnPS:小弟初学QT网络编程,请不要见笑。
请问这个正则表达式哪里错了
表达式:[^\.,\r\n]+\d+\s?[-:]\s?\d+[^\.,\r\n]+rn目的是为了提取含有比赛比分的句子,可是句号和逗号起作用,但是\r\n好像不起作用。rn
关于 short s1 = 1; s1 = s1 + 1;为什么错,错在哪?
关于 short s1 = 1;  s1 = s1 + 1;为什么错,错在哪? short s1 = 1; s1 = s1 + 1; 与 short s1 = 1; s1 += 1; 有错吗?错在哪?为什么? 答:因为byte、 short、 int 不会互相转换,
程序员:混日子不是你的错,根源在这里
程序员经常会干着干着就没劲了,有时一两天觉得没意思,有时十天八天甚至几个月都觉得提不起精神,上班开了电脑不知道干什么,浏览浏览新闻,翻翻朋友圈,看看群里的小伙伴都在瞎逼逼什么,然后就下班了。 为什么? 团队没有真正明确的目标 我待过各种各样的团队,也混过日子,就算现在,有时也不免把上班的几个小时稀里糊涂混过去。我极端讨厌消磨时间混日子,所以一旦我发现自己在混日子,就会
关于光盘的网站12请问请问请问请问请问
关于光盘的网站12<em>请问</em>恶<em>请问</em>恶<em>请问</em>恶<em>请问</em>恶<em>请问</em>
哪里错了
不知道<em>哪里</em><em>错了</em> 请教一下~    输入一组数组反序输出~用的是外部变量  #include "stdio.h"  int a[10]; int  fd(int b[10]); {int i;    for (i=0;i  a[9-i]=b[i];        }    main(){int j,p,a[10]; for(j=0;j scanf ("%d",&a[j]); fd(a
哪里错了.
我是JAVA初学者,编了一个程序不只错在哪.rnpublic class test2rn static int fib(int n) rn rn if (n==0) return 0; rn if (n==1) return 1; rn if (n>1) return fib(n-1)+fib(n-2); rn rnpublic static void main(String args[])rn System.out.println(fib(5));rnrn
哪里错了?
printf("%f=%f",(x1),(-b)+(sqrt(b*b-4ac))/(2a)));rnrn要的是二次方程的解:-B加减根号B平方减去4AC然后除二,rnrn<em>哪里</em><em>错了</em>?rnrnrnrn#include "stdio.h"rn#include "conio.h"rnrnmain()rnrn float a,b,c,x1,x2;rn printf("Please enter 3 real num:");rn scanf("%f%f%f",&a,&b,&c);rn if(a==0,b==0)rn printf("No solution!");rn else if(a==0)rn printf("%f",-c/b);rn else if(b*b-4,(x1),(-b)-(sqrt(b*b-4ac))/(2a)));[/color]rn rn getch();rn return;rnrnrnrn
哪里错了
我想实现这样的功能:rn在一个下拉列表里,里面是从星期一到星期日,我选择随便选择一个,然后以文本的形式列出当月里是这个星期的所有的日期来!rnrn但是以下代码运行后老只说我。。。选择0个日期?rn怎么回事?大家帮看下?谢谢!!!rnrn代码:rnrnpublic partial class _Default : System.Web.UI.Page rnrn protected void Page_Load(object sender, EventArgs e)rn rnrn rn protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)rn rn if (DropDownList1.SelectedIndex < 1)rn return ;rn int current_day = Calendar1.VisibleDate.Day;rn int current_month = Calendar1.VisibleDate.Month;rn int current_year = Calendar1.VisibleDate.Year;rn Calendar1.SelectedDates.Clear();rn for (int i = 1; i < datenumber; i++)rn Label1.Text += Calendar1.SelectedDates[i].ToShortDateString() + " ";rn rnrn
哪里错了
大家好:rn <em>请问</em>为什么以下代码运行时出现如下的语法错误提示的:rnrn[color=#FF0000]Microsoft VBScript 编译器错误 错误 '800a03ea' rnrn语法错误 rnrn/mzyzjb/recruit/book/MsgManager.asp,行 21 rnrnSub ShowMsg(rs,page)[/color]rnrnrn 0 thenrnpage=rs.pagecountrnelseif page = "" or page < 1 thenrnpage = 1rnend ifrnrs.absolutepage=pagernCall ShowMsg(rs,page)rn%>rnrnrn---------rn急切待复,衷心感谢!
哪里错了??
Dim sqlstr As String = "select fid from file3 where tname= '" + Label1.Text + "'"rn Dim cmd As SqlCommandrn cmd = New SqlCommand(sqlstr, myconn)rn Dim s As String = cmd.ExecuteScalar()rn label3.text = srn Dim sqlstr1 As String = "select count(*) from [file] where filename like '%s%' and fid ='s'"rnrn如果s换成具体中文字符就可以查询,否则显示为0,为什么??
哪里错了
#include"stdio.h"rn#include"ctype.h"rn#include"stdbool.h"rn#include"stdlib.h"rn#include"time.h"rnint main(void)rnrn char another_game='Y';rn int correct=false;/*正确*/rn int counter=0;/*记数*/rn int sequence_length=0;/*序列长度*/ rn time_t seed=0;rn int number=0;rn time_t now=0;rn int time_taken=0;rn scanf("%c",&another_game);rn dorn rn correct=ture;rn counter=0;rn sequence_length=2;rn time_taken=clock();rn while(correct)rn rn sequence_length+=conter++%3==0;rn seed=time(NULL);rn now=clock();rn srand((unsigned int)seed);/*设置随机函数*/rn for(int i=1;i,rand()%10);rn for( ;clock()-noe
哪里错了
insert OPENDATASOURCE('SQLOLEDB','Data Source="&request.ServerVariables("SERVER_NAME")& ";User ID=sa;Password=').gbcp.dbo.cjtp (pxh,xm,xb,csny,zw,zwjb,ejid,sjid,sfzh,gzsj,zzmm,rdsj,jszw,yxl,xxl) SELECT pxh,xm,xb,csny,zw,zwjb,ejid,sjid,sfzh,gzsj,zzmm,rdsj,jszw,yxl,xxl FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0','Data Source=" &filepath& ";User ID=Admin;Password=;Extended properties=Excel 5.0')...Sheet1$rnrn错误信息rn------------------------------------------------------------rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrnMicrosoft OLE DB Provider for ODBC Drivers 错误 '80040e14' rnrn[Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB 提供程序 'Microsoft.Jet.OLEDB.4.0' 不包含表 'Sheet1$'。该表可能不存在,或当前用户没有使用该表的权限。 rn
哪里错了...
[code=SQ]rnyear month amountrn2011 1 1.1rn2011 2 1.2rn2011 3 1.3rn2011 4 1.4rn2012 1 2.1rn2012 2 2.2rn2012 3 2.3rn2012 4 2.4rnrnrnyear m1 m2 m3 m4rn2011 1.1 1.2 1.3 1.4rn2012 2.1 2.2 2.3 2.4rnrnrnrnselect year,rn(select amount from tab ta where month=1 and ta.year=tab.year) m1,rn(select amount from tab ta where month=2 and ta.year=tab.year) m2,rn(select amount from tab ta where month=3 and ta.year=tab.year) m3,rn(select amount from tab ta where month=4 and ta.year=tab.year) m4rnfrom tabrngroup by year[/code]rn
哪里错了。。
输入一个5*5的二维数组,将各行最大值的坐标放置在一个新的一维数组中,最后按照下面的格式输出:rn第0行:12 34 23 45 7 最大值为45,坐标是(0,4)rn#includernvoid main()rnrn int a[5][5],b[10],i,j,n,max;rn for(i=0;i<=4;j++)rn rn if(max
jquery/js实现一个网页同时调用多个倒计时(最新的)
jquery/js实现一个网页同时调用多个倒计时(最新的) 最近需要网页添加多个倒计时. 查阅网络,基本上都是千遍一律的不好用. 自己按需写了个.希望对大家有用. 有用请赞一个哦!
文章热词 机器学习 机器学习课程 机器学习教程 深度学习视频教程 深度学习学习
相关热词 c#字段在哪里设置 c++const 变量在哪里 c# 代码 哪里 学习 android应用的服务器在哪里 在哪里学python 哪里学python
我们是很有底线的