这里哪错了 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:22
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:22
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Bbs1
本版专家分:99
Bbs8
本版专家分:48048
Blank
黄花 2018年10月 C/C++大版内专家分月排行榜第二
2018年6月 C/C++大版内专家分月排行榜第二
2018年1月 C/C++大版内专家分月排行榜第二
2017年12月 C/C++大版内专家分月排行榜第二
2017年8月 C/C++大版内专家分月排行榜第二
Blank
蓝花 2018年5月 C/C++大版内专家分月排行榜第三
2018年4月 C/C++大版内专家分月排行榜第三
2018年3月 C/C++大版内专家分月排行榜第三
2018年2月 C/C++大版内专家分月排行榜第三
2017年11月 C/C++大版内专家分月排行榜第三
2017年10月 C/C++大版内专家分月排行榜第三
2017年9月 C/C++大版内专家分月排行榜第三
2017年6月 C/C++大版内专家分月排行榜第三
2017年5月 C/C++大版内专家分月排行榜第三
2017年4月 C/C++大版内专家分月排行榜第三
2017年3月 C/C++大版内专家分月排行榜第三
错了 ???
我初学结构体,不知道下面哪<em>错了</em>,请指教rnstruct ClientRequestrnrnint a;rnint b;rnint c;rn;rnClientRequest Request;rnClientRequest.a=1;rnClientRequest.b=2;rnClientRequest.c=3;rnmemset(sendBuf,&Request,sizeof(Request));rnsend(client_sock,sendBuf,sizeof(sendBuf)+1, 0 );rn
错了?
rnalter table D_SchEduleMain alter column SchEduleMainStatus int default 1rn服务器: 消息 156,级别 15,状态 1,行 2rn在关键字 'default' 附近有语法错误。rnrnCREATE TABLE [D_SchEduleMain] (rn [SEMID] [int] IDENTITY (1, 1) NOT NULL ,rn [UID] [int] NULL ,rn [SchEduleMainTitle] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,rn [SchEduleMainMemo] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,rn [SchEduleMainFirstTime] [datetime] NULL ,rn [SchEduleMainLastTime] [datetime] NULL ,rn [SchEduleMainImportant] [int] NULL ,rn [SchEduleMainType] [int] NULL ,rn [SchEduleMainStatus] [int] NULL CONSTRAINT [DF__D_SchEdul__SchEd__239E4DCF] DEFAULT (0),rn PRIMARY KEY CLUSTERED rn (rn [SEMID]rn ) ON [PRIMARY] ,rn FOREIGN KEY rn (rn [SchEduleMainImportant]rn ) REFERENCES [D_SchEduleImportant] (rn [SEIID]rn ),rn FOREIGN KEY rn (rn [SchEduleMainType]rn ) REFERENCES [D_SchEduleSort] (rn [SEID]rn ),rn FOREIGN KEY rn (rn [UID]rn ) REFERENCES [D_admin] (rn [adminID]rn )rn) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]rnGOrnrnrn
错了????
#includernusing namespace std;rnclass Clockrnpublic:rn Clock(int newH,int newM,int newS);rn void setTime(int newH=0,int newM=0,int newS=0);rn void showTime();rnprivate:rn int hour,minute,second;rn;rnClock::Clock(int newH,int newM,int newS)rn hour=newH;rn minute=newM;rn second=newS;rnrnvoid Clock::setTime(int newH,int newM,int newS)rn hour=newH;rn minute=newM;rn second=newS;rnrninline void Clock::showTime()rn cout<
错了??
请大家帮我看看,哪<em>错了</em>??rnrn#include"stdio.h"rnvoid a(int []);rnmain()rnrn int i,array[]=1,2,3,4,5];rn a(array);rn for(i=0;i<6;i++) array[i]++;rn
错了....
var f=document.form1;rn var usrName=f.userName.value;rnrn 用户名:rn提示userName为空或不是对像...
错了???
double m(int a, ...);rnint main(void)rnrn m(4, 1.2, 45.2, 0.3, 123.0);rnrn return 0;rnrnrndouble m(int a, ...)rnrn int i;rn double list = 0;rn double t;rnrn va_list k;rnrn va_start(k, a);rnrn for (i=1; i, list);rn return list;rnrn
这里哪错?
rn rn rn" onchage="checkmoney(this)" Value="" Size="7" maxlength="7">rn
看看这里哪错
#includern#includernint main()rnrnint i,j,k,m;rnint a[i][j],a[k][m];rncin>>i;rncin>>j;rncin>>k;rncin>>m;rnrnrnrnrnrn
这里是不是错了
先请看这个网页http://referencesource.microsoft.com/#mscorlib/system/collections/hashtable.cs,6bfb5bc822c6faaa 查到private ICollection values;这个字段。rnprivate ICollection values;<em>这里</em>是不是<em>错了</em> 我猜想应该是private ICollection[] values;少了[]这个符号 请高手们回答
请问这里哪里错了
Query1->SQL->Add('select * from Delphi where'+''''edit1->Text''''+');rn请问<em>这里</em>哪里<em>错了</em>?请帮我改成正确的句子!谢谢!
这里哪里错了??
Open oFile For Binary As #1rnOpen tFile For Binary AS #2rnFor i = 0 to FileLen(oFile)rn Get 1 , , arn Put 2 , , arnNextrnClose #1rnClose #2rnrn上面的代码是以二进制的方式打开一个文件,然后重新以二进制的方式写到另一个文件,但是在写的时候,nFile这个文件的后面多出好多个空格,跟oFile的文件字节数不一样了,请问怎么会这样呢?rnrn问题2:Active Report怎么才能正确的显示中文?在2000下可以,但到了98就出事了,报表的字体我已全部设为宋体了,但是还是不行.请高手解答!!!
这里哪里错了
不管我数据库里面有没有数据,response.write(check.eof)rn输出TRUE,怎么回事,check.eof,我感觉就有点象结束判断标志,但我看很多程序都是用的它,我也用了,是不是<em>错了</em>?该用什么判断我的SQL找到结果了,rn
为什么这里错了
代码如下: ------------------------------------------------------------------------ import java.lang.reflect.Array; import java.util.*; public class Test12 {     public static void main(String arg
大哥,这里错了
rn靠,不知道什么地方出<em>错了</em>rn错误类型:rnMicrosoft VBScript 编译器错误 (0x800A03EA)rn/bk/paihangbang/mtphb.asp, 第 70 行, 第 51 列rnrs.Open "select m_namecn from mtxxb where m_code="&=Trim(dm),myconn,3,1rn
这里哪里错了?
[code=C#]rn public DataTable getRead()rn rn DataTable dt = new DataTable();rn SqlDataReader dr=getReader("sp_Get",CommandType.StoredProcedure);rn while (dr.Read())rn rn DataRow r = dt.NewRow(); rn r[0]=Convert.ToString( dr["StdNo"]); //<em>这里</em>哪里<em>错了</em>?rn r[1]=Convert.ToString( dr["Sname"]); //<em>这里</em>哪里<em>错了</em>?rn dt.Rows.Add(r);rn rn rn return dt;rn rn[/code]
看看这里什么地方错了
我的一个ISAPI程序rnrnrn//处理函数rnvoid CSystemExtension::login(CHttpServerContext* pCtxt,LPTSTR num1,LPTSTR num2,LPTSTR mode)rnrn// LPTSTR result;rn rn StartContent(pCtxt);rn WriteTitle(pCtxt);rn switch(mode[0])rn rn case '+':rn if ((num1=="admin")&&(num2=="admin"))rn *pCtxt<<<<<<<<<);rnEndContent(pCtxt);rnrnrnrn为什么我输入了正确的密码和用户名后还是提示我密码和用户名错误?
看看这里为什么错了!!!
[img=http://img.my.csdn.net/uploads/201211/29/1354195898_6189.PNG][/img]rn[img=http://img.my.csdn.net/uploads/201211/29/1354195905_7627.PNG][/img]rn[img=http://img.my.csdn.net/uploads/201211/29/1354195912_4152.PNG][/img]rn谢谢了 !!!!1[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/8.gif][/img]
这里越来越不错了
作为技术社区,javaEye是越来越不<em>错了</em>。只是最近太忙。以后要写点东西。一来加深记忆,而来和大家分享。 现在先冒个泡。
100分求解这里代码哪出错了
rn<> 0 Then rn Err.Clear rn Set conn = Nothing rn Response.Write("连接错误") rnEnd If rnrs.open "select * from abc where Name='" & name & "' and Word='" & word & "'",conn,1,1 rn If rs.recordcount=0 Then rn response.write(name & "H" & word & "=flase") rn Else rn response.Write(name & "H" & word & "=true") rn End If rn rs.Close rn set rs = Nothing rn%> rnrnrnrn如上是我根据网上查找的远程ASP连接ACCESS数据库查找相关条目是否存在的 aab.asp 文件里的代码,假设存放位置为http://www.abc.com/aab.asp ,我的abc.mdb 里的数据满足搜索下方搜索条件,就是说本来应该都是返回 truernrn我在电脑A 上VB里面编写 MsgBox Inet1.OpenURL("http://www.abc.com/aab.asp?name=测试一下&word=2")rn发送后 返回值为 测试一下H2=truernrn但是在电脑B上(这台电脑没安装VB,只是用打包程序执行)同样程序运行后返回的值是 ??H2=flase rnrn请问这是什么原因呢?是不是因为我的ASP文件上没申明接受什么类型的文字?比如UTF-8什么的,这些不太了解,麻烦高手指点下,谢谢
这里哪里错了
varrn b:tbrowseinfo;rn d:array[0..260] of char;rn i:pitemidlist;rn s:string;rnbeginrn b.hwndowner:=self.handle;rn b.pidlroot:=nil;rn b.pszdisplayname:=nil;rn b.lpsztitle:='请选择';rn b.ulflags:=0;rn b.lpfn:=nil;rn b.lparam:=0;rn b.iimage:=0;rn i:=shbrowseforfolder(b);rn if i<>nil thenrn beginrn shgetpathfromidlist(i,@d);rn s:=string(d);rn end;rn if s<>'' thenrn beginrn s:=s;rn end;rnend;
这里不知道哪里错了
[code=java]package practice;rnrnimport java.util.Arrays;rnimport java.util.Scanner;rnrnpublic class LotteryDrawing rnrn public static void main(String[] args) rn Scanner in = new Scanner(System.in);rn rn System.out.println("How many numbers do you need to draw? ");rn int k = in.nextInt();rn rn System.out.println("What is the hightest number you can draw? ");rn int n = in.nextInt();rn rn int[] numbers = new int[n];rn for (int i = 0; i < numbers.length; i++) rn numbers[i] = i + 1;rn rn rn int[] result = new int[k];rn for (int i = 0; i < result.length; i++) rn //random得到一个[0,1)浮点数,用n乘这个数,得到[0,n-1]之间随机数;rn int r = (int) (Math.random() * n); rn result[i] = numbers[r];rn //确保每次抽到的值不相同,用数组中的最后一个值改写number[r],并且n--;rn numbers[r] = numbers[n - 1];rn n--;rn rn Arrays.sort(result);rn System.out.println("Bet the following combination. It'll make you rich!");rn for (int r : result)rn System.out.println(r);rn rnrn[/code]rnnumber[r] = numbers[n-1]提示数组越界rn还有最后为什么要用numbers[n-1改写numbers[r]rnscanner in warning resource leak是怎么了
请问这里哪里错了?
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>rn rn rn rnrnrnrnrnrnrnrn
请问这里哪来错了
response.write (" ">"" ")
这里错了怎么办
错误代码: 1064rnYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USE travel;rn-- 创建表rn/*===================================================' at line 4[img=https://img-bbs.csdn.net/upload/201903/13/1552446298_123962.png][/img]rn
ASP高手帮我看看这里哪写错了
<>lcase(left(cUrl,instrrev(cUrl,"/"))) thenrnResponse.Redirect "admin_login.asp"rn response.endrn end ifrnend ifrnrnAdminName=replace(session("AdminName"),"'","")rnif AdminName=Empty thenrn call CloseConn()rn response.redirect "Admin_login.asp"rnrnrnend ifrn
在线等!!!急!!请问各位高手我这里错了???
在线等!!!急!!请问各位高手我<em>这里</em>哪<em>错了</em>???rnrn#include rn#include rn#include rn#include rnrnusing namespace std;rnrnvoid main()rnrn const string CLOSE_WINDOW_PROMPT=rn "Please press thr Enter key to close this output window.";rn stack> ages;rnrnrnC:\Documents and Settings\Rat\桌面\dda.cpp(14) : error C2146: syntax error : missing ',' before identifier 'ages'rnC:\Documents and Settings\Rat\桌面\dda.cpp(14) : error C2065: 'ages' : undeclared identifierrnC:\Documents and Settings\Rat\桌面\dda.cpp(14) : error C2143: syntax error : missing '>' before ';'rnError executing cl.exe.
我真想不通了,这里错了呢???????急急急???????????????????????????
我在ashx文件中的sql语句是这样写的.rnString strDbConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath("data/data.mdb");rn OleDbConnection DbConn = new OleDbConnection(strDbConn);rn DbConn.Open();rn String strsql = "select top 7 id,s_id,when Len(topic)>15 then (substring(topic,0,15)+'...') else topic end as topic from article where (s_id=228 or s_id=253) order by id desc";rn OleDbCommand cmd = new OleDbCommand(strsql, DbConn);rn OleDbDataReader dr = cmd.ExecuteReader();rnrnrn但页面报错rnrnrnrnrn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败。rnrn源错误: rnrnrn行 18: String strsql = "select top 7 id,s_id,when Len(topic)>15 then (substring(topic,0,15)+'...') else topic end as topic from article where (s_id=228 or s_id=253) order by id desc";rn行 19: OleDbCommand cmd = new OleDbCommand(strsql, DbConn);rn行 20: OleDbDataReader dr = cmd.ExecuteReader();rnrn rn第20行错...rnrn请教各位大哥大姐,我应该怎么改啊?rnrn还有,substring是不是要加上下面这一段啊?rn public string substring(string strTemp, int intLen, int IntClen)rn rn int intCLenCount = System.Text.Encoding.Default.GetBytes(strTemp).Length;rnrn string strTempA = "";rnrn if (intCLenCount > intLen)rn rn strTempA = strTemp.Substring(0, IntClen) + "...";rn rn elsern rn strTempA = strTemp.ToString();rn rnrn return strTempA;rn rnrnrn
我是初学者,谁能告诉我这里错了,谢谢
import java.util.Date;rn import java.applet.Applet;rn import java.awt.Graphics;rnrn public class Seasons2 extends Appletrn rn public void paint(Graphics g)rn rn Date day=new Date("2002/06/10");rn int m1;rn String today,season="";rn today=day.toString();rn m1=day.getMonth();rn m1=m1+1;rn if (m1>=2 & m1=5 & m1=8 & m1);rn rn
程序到底哪错了???!!!
[code=C/C++]#include rn#include rn#include rnusing namespace std;rnint main(int argc,char *argv[])rn rn ifstream fin;rn ofstream fout; rn fin.open(argv[1]);rn fout.open(argv[2]);rn string key;rn key=argv[3];rn char ch;rn int i=0;rn while(fin.get(ch))rn rn ch=ch^key[i];rn fout<
跪求 指导 哪错了????
delete (temp);rn temp=new struct student;rnrn strcpy(temp->name,L->name);rn delete []L->name;rn L->name=new char[20];rn strcpy(L->name,L->next->name);rn delete []L->next->name;rn L->next->name=new char[20];rn strcpy(L->next->name,temp->name);rnrn strcpy(temp->id,L->id);rn delete []L->id;rn L->id=new char[20];rn strcpy(L->id,L->next->id);rn delete []L->next->id;rn L->next->id=new char[20];rn strcpy(L->next->id,temp->id);rnrn temp->math=L->math;rn L->math=L->next->math;rn L->next->math=temp->math;rnrn temp->eng=L->eng;rn L->eng=L->next->eng;rn L->next->eng=temp->eng;rnrn temp->computer=L->computer;rn L->computer=L->next->computer;rn L->next->computer=temp->computer;rnrnrnrn事实上就是两个节点内容的交换rntypedef struct studentrnrn char *name;rn char *id;rn float math;rn float eng;rn float computer;rn struct student *next;rnrn*Linklist;
这句话哪错了??
if($info==ture)rn mysql_query("update user set login_status='2'where username='logname'");rn elsern mysql_query("update user set login_status='1'where username='logname'");rn
这个程序哪错了。。。
[code=C/C++]#include "windows.h"rn#include "stdlib.h"rn#include "string.h"rn#include "iostream.h"rnrnrnrnstruct phonebookrnchar name[20];rnlong number;; //可以放置姓名与电话rnclass Phonebookrnstruct phonebook *p;rnint n;//条目数rnpublic:Phonebook();//缺省构造函数rn Phonebook(int);rn friend Phonebook operator+(Phonebook&,Phonebook&);//操作符+的重载函数 rn ~Phonebook();//析构函数rn void setname(int,char*);rn void setnumber(int,long);rn void print();rn;rn//-----------------------------------rnPhonebook::Phonebook()rnn=0;rnp=NULL;rn//------------------------------------rnPhonebook::Phonebook(int a)rnn=a;//条目数rnp=(struct phonebook*)calloc(n,sizeof(struct phonebook));//动态分配空间rnrnPhonebook::~Phonebook()rnrn free (p);rnvoid Phonebook::print()rnfor (int i=0;inamename,(aa.p+i)->name);rn //在xx的前aa.n段插入a中的电话条目rn for(i=aa.n;inumber=(bb.p+j)->number;rn strcpy((xx.p+i)->name,(bb.p+j)->name);rn j++;rn rn //在aa.n段后面aa.n到aa.n+bb.n段之间插入bb中的条目数rn return xx;//返回电话本xxrnrnrnint main(int argc, char* argv[])rnrnPhonebook a;rnPhonebook b;rnPhonebook c;rn a.setname(0,"h1");rna.setname(1,"h2");rna.setnumber(0,123);rna.setnumber(1,234);rnb.setname(0,"h1");rnb.setname(1,"h2");rnb.setnumber(0,123);rnb.setnumber(1,234);rnrnrnc=a+b;rnc.print;rnreturn 0;rn[/code]
这个存储过程哪错了...
[code=SQL]rndrop proc pagelistrngorncreate procedure pagelistrn@tblname varchar(100),--表名rn@getcol varchar(1000) = '*',--列名rn@ID varchar(50),--主键列rn@ordercol varchar(100) = '',--排序列rn@ordertype bit = 0,--排序规则 0=asc 1=descrn@strwhere varchar(1000) = '',--查询条件rn@pageSize int = 10,--每页数据量rn@pageNum int = 1--页码rn---@maxnum int = 0 output--总数rnasrnbeginrndeclare @strSQL varchar(5000) -- 主语句 rnrnset @strSQL = 'select top ' + @pageSize + ' ' + @getcol + ' from ' + @tblname + ' where ' rn+ @ID + ' not in (select top ' + (@pageNum-1*@pageSize) + ' ' + @ID + ' from ' + @tblname + ') ' rnif @strwhere != ''rnbeginrn set @strSQL = @strSQL + ' and ' +@strwherernendrnif @ordercol != ''rnbeginrn if @ordertype != 0rn beginrn set @strSQL = @strSQL + ' order by ' + @ordercol + ' desc'rn endrn elsern beginrn set @strSQL = @strSQL + ' order by ' + @ordercol + ' asc'rn endrnendrnexec (@strSQL)rnendrnrnexec pagelist 'test_sc','name','id','id',1,'',2,1rn[/code]rnrn不要告诉我应该怎么写,我只是想把<em>这里</em>边的错误弄明白就成了。。rnrn消息 245,级别 16,状态 1,过程 pagelist,第 15 行rn在将 varchar 值 'select top ' 转换成数据类型 int 时失败。rnrn这是报的错
错了
#include "stdio.h"rnmain()rnrnint i,a=3,R[9]=a,s[9]=0;rnint ps[]=1,3,2,5,4,7,6,8;rn int t[]=0,1,1,1,3,1,1,0;rn int r[]=0,5,4,8,1,10,1,0;rn int T[]=0;rnint max(int a[],int m)rnrnint n;rnint imax=a[0];rnfor(n=1;n
哪出错了
编程将下列矩阵中的元素向右移动一列,最右一列移至第一列。rn1 4 6rn8 10 12rnrn#include rnvoid main()rnrn int v[2][4]=1,4,6,8,10,12,i,j;rn for(i=0;i);rn rn rnrn
不知道哪出错了
[color=#FF0000]JS:[/color]rnrnString.prototype.format = function() rn var s = this; rn for (var i=0,j=arguments.length; i 2)?arguments[2]:365,rn path = (arguments.length > 3)?arguments[3]:"/";rn with(new Date())rn setDate(getDate()+days);rn days=toUTCString();rn rn document.cookie = "0=1;expires=2;path=3".format(name, value, days, path);rn ,rn Get : function ()rn var returnValue=document.cookie.match(new RegExp("[\b\^;]?" + arguments[0] + "=([^;]*)(?=;|\b|$)","i"));rn return returnValue?unescape(returnValue[1]):returnValue;rn ,rn Delete : function ()rn var name=arguments[0];rn document.cookie = name + "=1 ; expires=Fri, 31 Dec 1900 23:59:59 GMT;";rn rnrnrnvar stTransform = function(s2t)rn var s="万与.......";rn var t="萬與.......";rn s2t = !!s2t || false;rn Cookie.Set("l",s2t?"t":"s");rn var stt = function(str)rn var r = "",i,j,k,c;rn for (i=0,j=str.length; i-1)rn return;rn if(o.title)rn o.title = stt(o.title);rn if(o.alt)rn o.alt = stt(o.alt);rn if(o.tagName && o.type && o.tagName.toUpperCase()=="INPUT" && ",button,submit,reset,".indexOf(o.type.toLowerCase())>-1)rn o.value = stt(o.value);rn for (var i=0,j=o.childNodes.length; i繁体rn[color=#FF0000]rn问题是只能变为繁体,无法变回到简体[/color]
这是哪错了
System.Text.Encoding encoder = System.Text.Encoding.GetEncoding("gb2312");rnSystem.Text.StringBuilder sb = new System.Text.StringBuilder();rnsb.Append("http://www.abc.com/send.php?");rnsb.Append ("mycode=1364578xxxx"); rnsb.Append ("&mypw=xxx");rnsb.Append ("&phone=135789256xx");rnsb.Append ("&content=oksms");rnsb.Append ("&name=");rnsb.Append(HttpUtility.UrlEncode("请审批",encoder));rnSystem.Web.HttpRequest request = (System.Web.HttpRequest)WebRequest.Create(sb.ToString());rnrn提示 WebRequest错误!rn
看下程序哪错了
帮看看下边的程序哪<em>错了</em>呢,咋老是编译错误的?rn#includern#includern#includern#pragma comment(lib,"ws2_32.lib")rnvoid main()rnrn WSADATA wsadata;rn SOCKET m_socket;rn char get[255],set[255];rn int result=WSAStartup(MATEWORK(2,2),&wsadata);rn if(result!=0)rn rn printf("WSAStartup error:%d",GetLastError());rn return;rn rn m_socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);rn if(m_socket==INVALID_SOCKET)rn rn printf("socket error:%d",GetLastError());rn WSACleanup();rn return;rn rn sockaddr_in service;rn service.sin_family=AF_INET;rn service.sin_addr.s_addr=inet_addr("127.0.0.1");rn service.sin_port=htons(20000);rn if(bind(m_socket,(SOCKADDR*)&service,sizeof(service))rn rn printf("bind failed\n");rn closesocket(m_socket);rn return;rn rn if(listen(m_socket,1)==SOCKET_ERROR)rn rn printf("Error listening on socket.\n");rn rn SOCKET acceptsocket;rn printf("Waiting for a cient to connect...\n");rn while(1)rn rn acceptsocket=SOCKET_ERROR;rn while(acceptsocket==SOCKET_ERROR)rn rn acceptsocket=accept(m_socket,NULL,NULL);rn rn recv(m_socket,get,sizeof(get),0);rn printf("data:%s\n",get);rn rn
我哪错了!!!!
# includern# includern# includern# includernusing namespace std;rnclass Stringrnrnpublic:rn char *str;rn int size;rnpublic:rn String ()rn rn str=new char();rn assert(str!=0);rn size=0;rn *str='\0';rn rn String (char *s)rn rn size=strlen(s);rn str=new char[size+1];rn assert(str!=0);rn strcpy(str,s);rn rn ~String()rn rn delete[]str;rn rn String operator+(String &B)rn rn String temp;rn int len;rn len=size+B.size;rn delete[]temp.str; rn temp.str=new char[len+1];rn assert(temp.str!=NULL);rn temp.size=len;rnrn strcpy(temp.str,str); //<em>这里</em>漏写了rn strcat(temp.str,B.str);rn return temp;rn rnfriend ostream &operator<<<(ostream &out,String &ob)rnrn int i;rn for(i=0;i
初学者 不知道哪错了
rnrn factor!!!!rn rnrnrnrn rnrnrn rnrn--------------------------------------------------------------rnrn看了几遍,不知道哪<em>错了</em>,求教。谢谢。
错了啊?
#include "stdio.h"rnmain()rn char a;rn a='1';rn FILE*fp;rn fp=fopen("qqq.txt","w+");rn fwrite(&a,sizeof(a),1,fp);rn fclose(fp);rn rnrn哪<em>错了</em>啊?
我这哪错了
#include "stdafx.h"rn#include "stdio.h"rnstruct aarnint x;rnstruct aa *next;rnrnrnint main()rnrn int x;rnstruct aa y,y1,*p;rny.x =90;y1.x =80;rnp=&y;rn(*p).x=0;rnprintf("%d\n",y=x);rnreturn y;rn
这个正则表达式哪错了
string source = "00001,22222,33333-98765,abc";rn string pattern = "([0-9]5-[0-9]5";rn Response.Write(Regex.IsMatch(source, pattern));
帮忙看看哪错了,
using System;rnusing System.Collections;rnusing System.Configuration;rnusing System.Data;rnusing System.Linq;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.HtmlControls;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Data.SqlClient;rnusing System.Xml.Linq;rnrnnamespace Jingcairnrn public partial class _Default : System.Web.UI.Pagern rnrn protected void Page_Load(object sender, EventArgs e)rn rn if (Session["Username"] == null)rn rn Response.Redirect("login.aspx");rn return;rn rn elsern rn SqlConnection con = new SqlConnection("server=127.0.0.1;database=Toupiao;uid=sa;pwd=sa");rn con.Open();rn int username = int.Parse(Request.QueryString["username"].ToString());rn SqlDataAdapter sd2 = new SqlDataAdapter("select * from Usermain where Username='" + username + "' ", con);rn DataSet ds2 = new DataSet();rn sd2.Fill(ds2);rn TextBox2.Text = Session["Username"].ToString();rn TextBox3.Text = ds2.Tables[0].Rows[0]["Gold"].ToString();rn rnrn rnrn protected void Button1_Click(object sender, EventArgs e)rn rnrn rn rnrnrn现在提示int username = int.Parse(Request.QueryString["username"].ToString());rn未将对象引用到实例
这个if语句哪错了
if rn session("jb")=1 thenrn rs.open "select * from tkxt where xy='"&session("xy")&"'",conn,1,1rnelse if rn session("jb")=2 thenrn rs.open "select * from tkxt where x='"&session("x")&"'",conn,1,1rn rnend ifrn这个if语句错在哪,请大侠帮忙改下
归并排序,哪出错了?
[code=Java]rnclass DArrayrn public void mergeSort(int[] arr,int left,int right)rn if(left
请看这哪错了
源码rn protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)rn rn DB db = new DB();rn SqlConnection con = db.createConnection();rn con.Open();rn SqlCommand cmd = null;rn SqlParameter para;rn // String userName ;rn String temp = "";rn int subjectId;rnrn if (e.Row.RowType == DataControlRowType.DataRow)rn rn //userName =Convert.ToString( GridView1.DataKeys[e.Row].Values[0]);rn // subjectId = Convert.ToInt32(GridView1.DataKeys[e.Row].Values[1]);rn cmd = new SqlCommand("select * from papers where userName=@userName and subjecId=@subjectId");rnrn para = new SqlParameter("@userName", SqlDbType.NVarChar, 50);rn para.Value = userName;rn cmd.Parameters.Add(para);rnrn para = new SqlParameter("@subjectId", SqlDbType.Int, 8);rn para.Value = subjectId;rn cmd.Parameters.Add(para);rn temp = Convert.ToString(cmd.ExecuteScalar());rn if (temp == "")rn rn ((Label)(GridView1.Rows[e.Row].Cells[4].FindControl("label1"))).Text = "已经";rn rn elsern rn ((Label)(GridView1.Rows[e.Row].Cells[4].Controls[0])).Text = "已经1";rn rn rn rnrn错误提示:rn编译错误 rn说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 rnrn编译器错误信息: CS1502: 与“System.Web.UI.WebControls.GridViewRowCollection.this[int]”最匹配的重载方法具有一些无效参数rnrn源错误:rnrn rnrn行 71: if (temp == "")rn行 72: rn行 73: ((Label)(GridView1.Rows[e.Row].Cells[4].FindControl("label1"))).Text = "已经";rn行 74: rn行 75: elsern rn73行为红色显示rn我在gridview的一个模板列中方了个label,我现在小想设定它的text值rn可是出<em>错了</em>
这个程序哪错了
这是一个求阶数的程序。为什么每次的结果都是1?rn请高手指教rnrn#includern#includernint jc(int i)rnrn if(i==1)rn return 1;rn return jc(i-1)*i;rnrnrnvoid main()rnrn double s=1;rn double m=0;rn double x,rn int sign=1;rn cout<<>x;rn for(int j=1;;j++)rn rnrn m=sign*(pow(x,j)/jc(j));rn rn sign*=-1;rn if(fabs(m)》1e-8)break;rn s+=m;rn rn rn cout<<
哪点错了
#includernvoid main()rnrn int a[4],b[4],temp,n(0);rn for(int i(0);i<<>a[i];rn rn for(int j(0);i<4;k++)rn if(a[i]!=a[k])rn rn b[j]=a[j];rn n++;rnrnrnrn
下面的哪错了
rnrn rnrnrnrn rnrnrn
--------------------------这段代码 哪错了????
[code=HTML] rn [/code]rnrn怎么改一下啊????
这是哪错了?
string query="SELECT * FROM picture"; rnDataSet ds = new DataSet() ;rnOleDbDataAdapter command = new OleDbDataAdapter(query,conn);rncommand.Fill(ds,"picture");rnDataTable TheTable = ds.Tables[0];rnrnrnDataRow aRow = TheTable.NewRow();rn rnaRow["pdata"] = buffer;rnaRow["filename"] = "afasfasf";rnrnTheTable.Rows.Add(aRow);rnrncommand.Update (ds, "picture");
这段代码哪错了?
conn.execute("update [user] set password="&request.form("newpwd1")&" where id="&id)
到底哪错了
#includernmain()rn int i,max=0;rn double a[10];rnfor(i=0,i<=9,i++)rn if(a[max]
这个存储过程哪错了
CREATE PROCEDURE [dbo].[Wjp_Yz_AllSrTj] rn@BeginTime char(10),rn@EndTime char(10),rn@Mzgh decimal,rn@Mzsf decimal,rn@ZySr decimalrnasrnrnset nocount onrnSET ANSI_WARNINGS OFFrnrndeclare @sql varchar(8000)rnrnset @sql='select sum(fairtotal) as hj from regibase where regidate between '+ @begintime + ' 00:00:00' +' and ' + endtime + ' 23:59:59'+' and backflag = 0'rnrnset @mzgh=exec(@sql)rnrnset @sql='select sum(zje) as zje from dt_mzdzview where revdate between '+@begintime + ' 00:00:00'+' and ' + endtime + ' 23:59:59'+' and parkdate is null'rnrnset @mzsf=exec(@sql)rnrnset @sql='select sum(revprice) as zje from dt_ZySfView where revdate between '+ @begintime + ' 00:00:00'+' and ' + endtime +' 23:59:59'rnrnset @zysr=exec(@sql)rnrnset nocount offrnSET ANSI_WARNINGS OnrnGOrnrnrnrnrn服务器: 消息 156,级别 15,状态 1,过程 Wjp_Yz_AllSrTj,行 17rn在关键字 'exec' 附近有语法错误。rn服务器: 消息 156,级别 15,状态 1,过程 Wjp_Yz_AllSrTj,行 19rn在关键字 'exec' 附近有语法错误。rn服务器: 消息 156,级别 15,状态 1,过程 Wjp_Yz_AllSrTj,行 21rn在关键字 'exec' 附近有语法错误。rn
读写web.config的,哪错了
aspx页rnrnrnrn rn rn rn rn rn rnrn rnrnrnrn--------------------------------------------------------------------rncs页rnusing System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing System.Xml ;rnrnnamespace lianxirnrn /// rn /// WebForm7 的摘要说明。rn /// rn public class WebForm7 : System.Web.UI.Pagern rn protected System.Web.UI.WebControls.TextBox TextBox1;rn protected System.Web.UI.WebControls.Button Button1;rn protected System.Web.UI.WebControls.DropDownList DropDownList1;rn rn private void Page_Load(object sender, System.EventArgs e)rn rn // 在此处放置用户代码以初始化页面rn if(!Page.IsPostBack)rn rn //打开某文件(假设WEB。CONFIG在根目录中)rn string filename=Server.MapPath("Web.config");rn //string filename=Server.MapPath("/") + @"\web.config";rn XmlDocument xmldoc= new XmlDocument();rn xmldoc.Load(filename);rnrn XmlNodeList topM=xmldoc.DocumentElement.ChildNodes;rn foreach(XmlElement element in topM)rn rn if(element.Name.ToLower()=="appsettings")rn rn XmlNodeList _node=element.ChildNodes;rn if ( _node.Count >0 )rn rn DropDownList1.Items.Clear();rn foreach(XmlElement el in _node)rn rn DropDownList1.Items.Add(el.Attributes["key"].InnerXml);rn DropDownList1.DataBind();rn rn rn rn rn rn rnrn #region Web 窗体设计器生成的代码rn override protected void OnInit(EventArgs e)rn rn //rn // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。rn //rn InitializeComponent();rn base.OnInit(e);rn rn rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.Button1.Click += new System.EventHandler(this.Button1_Click);rn this.Load += new System.EventHandler(this.Page_Load);rnrn rn #endregionrnrn private void Button1_Click(object sender, System.EventArgs e)rn rn string filename=Server.MapPath("Web.config");rn XmlDocument xmldoc= new XmlDocument();rn xmldoc.Load(filename);rnrn XmlNodeList topM=xmldoc.DocumentElement.ChildNodes;rn foreach(XmlElement element in topM)rn rn if(element.Name.ToLower()=="appsettings")rn rn XmlNodeList _node=element.ChildNodes;rn if ( _node.Count >0 ) rn rn foreach(XmlElement el in _node)rn rn if(el.Attributes["key"].InnerXml.ToLower()==this.DropDownList1.SelectedItem.Value.ToLower())rn rn el.Attributes["value"].Value=this.TextBox1.Text;rn rn rn rn rn rn xmldoc.Save(filename);rn rn rnrn
谁知道哪出错了
#include rn#include rn//using std::bad_alloc;rnrnint main()rnrn double *ptr[50];rnrn tryrn for(int i=0;i<<
这句话哪错了
Response.Write(" ");
到底哪错了??
void CDIBTextView::OnLoadbitmap() rnrn // TODO: Add your command handler code herern CFile file;rn file.Open("photoimg428.bmp",CFile::modeRead,NULL);rn int length=file.GetLength();rn m_bmpbuffer=new BYTE[length];rn file.Read(m_bmpbuffer,length);rn file.Close();rnrn m_bmpfileheader=(LPBITMAPFILEHEADER)m_bmpbuffer;rn m_bmpinfo=(LPBITMAPINFO)(m_bmpbuffer+sizeof(BITMAPFILEHEADER));rn m_bmpinfoheader=(LPBITMAPINFOHEADER)m_bmpinfo;rn rn mDC=new CDC;rn mDC->CreateCompatibleDC(NULL);rnrn HBITMAP m_bitmap;rn m_bitmap=::CreateDIBitmap(mDC->m_hDC,m_bmpinfoheader,CBM_INIT,m_bmpbuffer+m_bmpfileheader->bfOffBits,m_bmpinfo,DIB_RGB_COLORS);rn if(m_bitmap == NULL)rn rn MessageBox("create bitmap error.");rn return;rn rn InvalidateRect(NULL);rnrnm_bitmap总是空的,哪<em>错了</em>?rn
这名SQL哪错了
第 8 行, 第 237 列rnsqlstr10="select bookid,bookname,bookchuban,bookdate,kaiben,yeshu,banci,zhuang,isbn,bookcontent,bookmulu,shichangjia,huiyuanjia,bookpic,bookzz,dazhe from shop_books where anclassid in (select anclassid from shop_anclass where anclass='"&收藏珍品&"')"rn--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
这哪错了???
[img=https://img-bbs.csdn.net/upload/201709/10/1505048706_476780.png][/img]
帮我看看哪错了
SortList 0rnFunction SortList(SortID)rnset rs=conn.execute("select * from SortSet where Layer="&SortID&" order by id asc")rnwhile not rs.eofrnSortID=rs("id")rn %>rn > rn rn rn rn rn ">修改 rn ">删除rn rn rnBOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。rn
access,哪出错了???
出错提示:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)rn[Microsoft][ODBC Microsoft Access Driver] 不能更新。数据库或对象为只读。rn为什么??
QQ聊天程序下载
1.客户端在浏览器地址栏输入服务器的域名或IP地址,请求服务器上一个含有java applet小程序的网页。 2.客户端通过下载的java applet小程序和服务器建立套接字连接后,用户输入聊天的昵称就可以和其他的用户聊天了。 3.聊天室界面包含公共聊天信息和私人聊天信息,用户可以用鼠标双击聊天列表某个聊天的昵称,和该聊天者进行私人聊天。 4.当新的用户进入聊天室时,所有的用户都可以在聊天列表看到该用户的昵称;当某用户关闭浏览器或退出聊天室时,聊天列表将该用户的昵称删除,聊天室显示该用户离开的消息。 5.当用户的名称和以前的某个用户一样时,给出提示,并要求此用户换一个名称进入系统,而对别的用 相关下载链接:[url=//download.csdn.net/download/pretty1234/3813895?utm_source=bbsseo]//download.csdn.net/download/pretty1234/3813895?utm_source=bbsseo[/url]
ATMEGA128例程下载
ATMEGA128例程,包括数码管、LED、液晶等程序 相关下载链接:[url=//download.csdn.net/download/atongmuttcc/4876508?utm_source=bbsseo]//download.csdn.net/download/atongmuttcc/4876508?utm_source=bbsseo[/url]
7天精通PHOTOSHOP CS5 UI交互设计下载
7天精通PHOTOSHOP CS5 UI交互设计 相关下载链接:[url=//download.csdn.net/download/u012804795/6536783?utm_source=bbsseo]//download.csdn.net/download/u012804795/6536783?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的