请问asp.net(C#)中的这个sql语句哪里错了?
 insert into user_info (user_name,user_pw,real_name,title,school,department,phone_number,email)values('"+user_name+"','"+user_pw+"','"+real_name+"','"+title+"','"+school+"','"+department+"','"+phone_number+"','"+email+"')

3个回答

目测 ()括号你用了全角的。

insert into user_info (user_name,user_pw,real_name,title,school,department,phone_number,email)values('"+user_name+"','"+user_pw+"','"+real_name+"','"+title+"','"+school+"','"+department+"','"+phone_number+"','"+email+"')
这里括号不一样。如同楼上正解。

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
请问这个sql语句哪里错了?
无效的SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'358','','vic','1','1044362631','0',':good: 共享','1','1','218.72.18.196','0','1')rnmysql数据库错误: Duplicate entry '1282' for key 1
请问这个sql语句哪里错了
procedure TForm1.BitBtn1Click(Sender: TObject);rn varrn data,wc_destory:string;rn n:Integer;rnbeginrn data:= Edit35.Text+'-'+Edit36.Text+'-'+Edit37.Text;rnrn if Memo1.Lines[1]<>'' thenrn beginrn for n:=0 to Memo1.Lines.Count dorn beginrn wc_destory:=wc_destory+Memo1.Lines[n] ;rn end;rn end;rn n:=0;rnrn if Edit1.Text='' then showmessage('请输入厕所位置!')rn elsern if Edit2.Text='' then showmessage('请输所在路段!')rn elsern if Edit3.Text='' then showmessage('请输入厕所编号!')rn elserntryrn Query1.Close;rn Query1.SQL.Clear;rn Query1.SQL.Add('INERT INTO ly_db VALUES(Edit3.Text,Edit1.Text,Edit2.Text,Edit4.Text,Edit5.Text,ComboBox1.Text,Edit6.Text,Edit21.Text,data, Edit7.Text,Edit8.Text,Edit9.Text, wc_destory)');rn Query1.ExecSQL;rn exceptrn showmessage('数据输入错误!');rn n:=-1000 ;rn end;rnrn if n<>-1000 thenrn if Edit1.Text<>''rn thenrn beginrn showmessage('数据添加成功!');rn Edit1.Clear;rn Edit2.Clear;rn Edit3.Clear;rn Edit4.Clear;rn Edit5.Clear;rn Edit6.Clear;rn Edit7.Clear;rn Edit8.Clear;rn Edit9.Clear;rn Edit21.Clear;rn Edit35.Clear;rn Edit36.Clear;rn Edit37.Clear;rn ComboBox1.Clear;rn Memo1.Clear;rnrnend;rnend;rnend.
这个SQL语句哪里错了?
'select xsdm from 显示代码表 where syh>'+''''+inttostr((i-40)*100)+''''+ 'and syh<'+''''+inttostr((i-40)*100+101)+'''' ;
这个SQL语句哪里错了??
UPDATE TB_5004 SET F0150=SUM(F0030) rnGROUP BY F0020rnrnrn提示错误:rn服务器: 消息 157,级别 15,状态 1,过程 P_GENERATE_TB5004,行 28rn聚合不应出现在 UPDATE 语句的集合列表中。
这个SQL语句哪里错了?
这个SQL语句哪里错了?rn string alterColSQL = "alter table " + tableName + " add column " + name + " varchar(20) " + meaning + " varchar(100) " + type + " varchar(50) " + dataSource + " varchar(50) ";rn目的是在一个表中加几个字段,哪里出问题了?
这个sql语句哪里错了?
strsql="delete from '"&request("biaoming")&"' where id="&request("id")rn请教大家
这个SQL语句哪里错了
rnupdate (select A.jfje,A.dfje,A.ljjf,A.ljdf,B.jfje,B.dfje,B.ljjf,B.ljdf from #Tzzb AS A rn inner join #TTzzb AS B on B.month=A.month and B.kmdm=A.kmdm)rnrnset A.jfje=case when(B.jfje!=0) then B.jfje else A.jfje end,rn A.dfje=case when(B.dfje<>0) then B.dfje else A.dfje end,rn A.ljjf=case when(B.ljjf<>0) then B.ljjf else A.ljjf end,rn A.ljdf=case when(B.ljdf<>0) then B.ljdf else A.ljdf endrn
这个sql语句哪里错了!
select t1.user_id,t1.nickname,t1.birthday,t1.city,t1.declaration,t2.constellation,t3.photo,t3.id,t3.cl_times from tsy_user t1,tsy_user_detail t2,tsy_user_photo t3 where t1.user_id=t2.user_id and t1.user_id=t3.user_id and t3.photo is not null and t3.check_if=1 and t1.User_id='adu'or t1.email='adu'or t1.nickname='adu' order by t3.dt descrnrnt1表是用户的信息,t2表是用户的详细信息,t3表是存放用户的图片rnt1表中放nickname,emailrnt1.user_id,t2.user_id,t3,user_id是一样的rnt3表中用户可以上传多张图片,所以主键是idrnrn当用户查询的时候,我通过t3表来取得t1,t2表中的字段,现在我这样写的语句有错rn产生一对多的情况,请问该怎么改呢?
这个语句哪里错了??
(select cid,aid,pidrnfrom Customers,Agents,Products)rnexceptrn(select cid,aid,pidrnfrom Customers,Agents,Productsrnwhere Customers.city = Agents.city and Customers.city = Products.city)
这个语句哪里错了?
sql.Add('Insert into emailadd(user, emailaddress) values(:p0, :p1)'); Parameters[0].Value := user.Text;rnParameters[1].Value := emailAdd.Text;rnrnrnrn为什么老是提示我语法错误。我平时都是这么用的是好的。搞不懂。
请问这个哪里错了???
[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 <= BASEHRS)rn gross = hours * pay;rn elsern gross = pay * BASEHRS + (hours - BASEHRS) * pay * OVERTIME;rn // 税金rn if(gross <= AMT1)rn taxes = gross * RATE1;rn else if(gross <= AMT1 + AMT2)rn taxes = AMT1 * RATE1 + (gross - AMT1) * RATE2;rn elsern taxes = AMT1 * RATE1 + AMT2 * RATE2 + (gross - AMT1 + AMT2) * RATE3;rn // 净工资rn net = gross - taxes;rn printf("Gross:%.2f\nTaxes:%.2f\nNet:%.2f\n", gross, taxes, net);rn memu();rn rn return 0;rnrnrnvoid memu(void)rnrn printf("**********************************************************\n");rn printf("Please choice wage scale:\n");rn printf("a. $8.75/hr b. $9.33/hr\n");rn printf("c. $10.00/hr d. $11.20/hr\n");rn printf("q. quit\n");rn printf("**********************************************************\n");rnrnrnchar get_first(void)rnrn char ch;rn ch = getchar();rn while(getchar() != '\n')rn continue;rn return ch;rnrnrn[/code]rnvc++6.0编译报错,貌似是if和else那段出错。。可我不知道错在哪里。。
sql语句哪里错了
原来语句是这样的 有数据显示 rnfSql = "SELECT TOP "& NewsNum &" * FROM Sxzx_NewsData WHERE D_CataID LIKE '"&T_CataID&"%' And D_isCheck =1 ORDER BY D_Hits DESC" rnrn加了判断时间的 rnfSql = "SELECT TOP "& NewsNum &" * FROM Sxzx_NewsData WHERE D_CataID LIKE '"&T_CataID&"%' and Datediff('ww','D_AddTime',now()) =1 And D_isCheck =1 ORDER BY D_Hits DESC" rn就没有数据显示了 rnD_AddTime 是时间日期型的 rn加了eof rof判断 如果数据库没有数据会提示的
请问我这个SQL语句哪里错了?
select DISTINCT a.ID,a.sex,a.NickName,a.Work_location,a.Birth,a.Height,a.Home_location,a.Income,a.Marriage,a.Industry,a.Education from UserPhoto b ,UserBase a left join ZhiJianPaiMing c rnon a.id=c.userid and getdate()> c.starttime and getdate()
帮我看看这个sql语句哪里错了?
select a.XMMC,B.CBMC,c.UseDate,c.ComebackDate,c.WorkDays,c.FollowWorkPlan,d.DRHY,d.DRCY,d.DRCSrnfrom rnHYGC_SHIP_DAILY as a,rnHYGC_SHIP_DAILY_FZCBDT as b, rnHYGC_SHIP_DAILY_OIL_WATER as d, rnT_Plan as c where b.BH=a.BH and b.BH=d.BH and b.CBMC=C.ShipName and b.CBMC=d.CBMC rnand CONVERT(VARCHAR(10),a.RQ,120) = CONVERT(VARCHAR(10),'2009-12-24',120)rnrn下面是结果:应该在 SDFSD11111111 3.00 的位置应该是空,但是现在把别的行的数据给读出来了!!rn黄海 吉野2 2009-12-18 00:00:00.000 2009-12-18 00:00:00.000 12 SDFSD11111111 3.00
这个简单的sql语句哪里错了?
[code=SQL]insert into TbInfoList (TheDay,Kind,KindCost,Other,OtherCost,Memo,MemoCost,Total)values('2009-07-13','','1','','1','','1','3')[/code]rn看了半天,不知那里错了rn每个字段都是文本,accessrn用一个简单的语句插入没错,好像也没关键字把?
我这个sql语句哪里错了啊?
[code=SQL]rnDECLARE @STARTYEAR VARCHAR(50) ,@STARTMONTH VARCHAR(50),rn@ENDYEAR VARCHAR(50),@ENDMONTH VARCHAR(50),@ZYKJ VARCHAR(50),@CYKJ VARCHAR(50)rnrnDECLARE @YJ VARCHAR(1000)rn SET @YJ=' SELECT SDID,ROW_NUMBER() OVER (ORDER BY GYZCZ) AS PM ,YEAR,MONTH, GYZCZ,rn (SELECT GYZCZ from [T_Data] where YEAR=T.Year-1 AND MONTH=T.Month AND SDID=T.SDID) AS QNGYZCZ,rn (GYZCZ-(SELECT GYZCZ from [T_Data] where YEAR=T.Year-1 AND MONTH=T.Month AND SDID=T.SDID)) AS ZL, rn ((GYZCZ-(SELECT GYZCZ from [T_Data] where YEAR=T.Year-1 AND MONTH=T.Month AND SDID=T.SDID))/(SELECT GYZCZ from [T_Data] where YEAR=T.Year-1 AND MONTH=T.Month AND SDID=T.SDID)) AS ZF INTO rn #TABLE1 FROM T_Data AS T WHERE YEAR>='+@STARTYEAR+' AND YEAR <='+@ENDYEAR+' AND MONTH>='+@STARTMONTH+' AND MONTH<='+@ENDMONTH+' AND PDID='+@ZYKJ+' AND SDID IN ('''+@CYKJ+''') ORDER BY MONTH,SDID'rn EXEC (@YJ)rn DECLARE @YJ2 VARCHAR(2000)rn SET @YJ2='SELECT * FROM #TABLE1'rn EXEC (@YJ2)rn[/code]rnrn那里写错了啊?
请问这段SQL语句哪里出错了
CREATE TABLE order(rn account char(20),rn bookId char(20),rn orderTime char(20),rn backTime char(20),rn PRIMARY KEY(account, bookId, orderTime),rn FOREIGN KEY(account) REFERENCE user(account),rn FOREIGN KEY(bookId) REFERENCE book(bookId)rn);rnrn为什么我导入到mysql中会报错rnERROR 1064 (42000): You have an error in your SQL syntax; check the manual thatrncorresponds to your MySQL server version for the right syntax to use near 'orderrn(rn account char(20),rn bookId char(20),rn orderTime char(20),rn backTime char(' at line 1
请问这条SQL语句哪里错了?
declare @DataName sysnamernset @DataName='pubs'rn use @DataNamernGOrn当运行上面的语句时就会提示出错,请问有谁知道是怎么回事?谢谢!
请问一下这个sql哪里错了?
exec('select A.*,B.* from A ,B where A.id=B.id and B.city='北京市'')rn在查询分析器里面怎么老是提示 北京市 附近有语法错误啊,错在哪拉
这个语句哪里出错了?
sql = "select * from Device where DeviceName="+CString("'") + dlg.m_strDevice + CString("'") + "and ProgID =" + CString("'") + iProgID + CString("'");
这个语句哪里错了啊
tryrn rn m_pRecordset->Open("SELECT * FROM DemoTable", // 查询DemoTable表中所有字段rn theApp.m_pConnection.GetInterfacePtr(), // 获取库接库的IDispatch指针rn adOpenDynamic,rn adLockOptimistic,rn adCmdText);rn rn catch(_com_error *e)rn rn AfxMessageBox(e->ErrorMessage());rn rnrn编辑时提示三个错误rnrnerror C2065: 'theApp' : undeclared identifierrnerror C2228: left of '.m_pConnection' must have class/struct/union typernerror C2228: left of '.GetInterfacePtr' must have class/struct/union typernError executing cl.exe.rnrnADO连接数据库CodeDlg.obj - 3 error(s), 0 warning(s)rnrn我是初学者,请各位加我QQ,向你们学习啊!rnQQ:38078432rnMAIL:z_kai@126.comrn
这个语句哪里出错了
我运行如下的语句后,怎么好像有问题啊rnselect stuff(安全,2,3,5) FROM ABCrnrn得到的是:rn0500000000rn05000rn0500000000000000rn05000000000rnrn不是应该得到的是 rn0555000000rn05550rn0555000000000000rn05550000000rnrn难道我哪里写错了??
各位大哥,请问一下这个SQL语句错了哪里??
declare @indextable table(id int identity(1,1),aa st,nid int)rninsert into @indextable(st,nid) values (1,select m_id from cs order by m_id desc)rnselect * from @indextablernrn
请问这个SQL语句什么地方错了?
SELECT a.PID,count(distinct a.NE) CNT,sum(b.TOTAL) ALLTOTALrnFROM Codes arn LEFT JOIN Totals b ON b.PID=a.PIDrnGROUP BY a.PIDrnrn它出现一个这样的错误:rnODBC: 消息 0,级别 19,状态 1rnSqlDumpExceptionHandler: 进程 53 发生了严重的异常 c0000005 EXCEPTION_ACCESS_VIOLATION。SQL Server 将终止该进程。rnrn将count里面的distinct去掉,改成:rnSELECT a.PID,count(a.NE) CNT,sum(b.TOTAL) ALLTOTALrnFROM Codes arn LEFT JOIN Totals b ON b.PID=a.PIDrnGROUP BY a.PIDrn就不会出错了。rn但是这样得到的不是我想要的数据rn比如Codes中有数据:rn PID NE .......rn 1 arn 1 arn 1 brn 1 crn查询得到的是rn PID CNT .......rn 1 4rnrn而我希望CNT表现的是这个PID下面不重复NE的个数,像上面例子,应该就是3了
请问这个SQL语句哪出错了
CREATE PROCEDURE fx_wholern @Out_No varchar(10)rn  ASrn --插入Fx_wholesale_2011rn  insert into FxStorehouse.Fx_wholesaleReg_2011rn  select * FROM Fx.Fx_wholesaleReg where Fx.Fx_wholesaleReg.Out_No = @Out_Norn --插入Fx_outlist——2011rn insert into FxStorehouse.Fx_OutList_2011rn SELECT * from Fx.Fx_OutList inner join on Fx.Fx_wholesaleReg rnwhere Fx.Fx_OutList.Out_No = Fx.Fx_wholesaleReg.Out_No AND rnrnFx.Fx_wholesaleReg.Out_No = @Out_Norn
请问这个SQL语句怎么错了?
SELECT 姓名 FROM table1 WHERE 年龄 = 15rn这样执行就正确,如果是:rnrnSELECT 姓名 FROM table1 WHERE 爱好 = 足球rn就出错!rnrn请问应该怎样改啊?!rn谢谢!
请问这两个语句哪里错了
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"
哪里错了 求解!!!!!!sql语句!!!!
select a.* from gnss_vehiclegpsrealtime a where a.recordtime >= convert(varchar(20),getdate() - 7,120);
简单的SQL语句哪里错了?
写了一个简单的存储过程:rn[code=sql]rncreate procedure insert_data(@NodId int, @NodName varchar(20), @Flag tinyint, @Value float)rnAS BEGINrn insert into dev values(@NodId, @NodName, @Flag, @Value)rnENDrn[/code]rn然后写一个简单的代码去调用它:rn[code=sql]rnDECLARE @i INTrnSET @i = 1rnwhile(@i < 3)rnBEGINrn exec dbo.insert_data @i, '压力传感设备', 1, 29.9rn SET @i = @i+1rnENDrn[/code]rnrn因为NodId 是主键(所建立的表的成员就是上面那四个变量),所以执行出错了:rnrn消息 2627,级别 14,状态 1,过程 insert_data,第 23 行rn违反了 PRIMARY KEY 约束 'PK_dev'。不能在对象 'dbo.dev' 中插入重复键。rnrn它在没有主键的时候运行没有问题,而且运行后我没有发现有NodId重复的行啊rnrn上面的该怎么改一下呢,我的要求只是能批量的插入一万条数据(或者更多)
sql 数据库更新语句 哪里错了
<% rnset conn=opendb("oabusy","conn","accessdsn")rnsql="select * from wra100 where id=" & request("id") rn'sql="select * from wra100"rnset rs=server.createobject("adodb.recordset")rnrs.open sql,conn,1,1rnif not (rs.eof and rs.bof) thenrn%>rnrnrn " onSubmit="return checkdata();">rn rnrn rn 件号/文件号 ">*rn rn 状 态 checked="checked" <%End if%> value="完成"/>完成 checked="checked" <%End if%>value="未完"/>未完 rn rn 问题描述 <% =rs("wentimiaosu")%>*rn rn 处理情况 <%=rs("chuliqingk")%>*rn rn 完成日期 " onFocus="CalendarWebControl.show(this,false,this.value);">rn rn 领导批示 rnrnrnrnrnrn<% End If %>rn<% rs.close %>rnrnrnrnrn<%rn'更新内容rnif request("submit")="确定修改" & onsubmit thenrnjianhao=request("jianhao")rnwentimiaosu=request("wentimiaosu")rnchuliqingk=request("chuliqingk")rnwanchengriqi=request("wanchengriqi")rnzhuangtai=request("rdo")rn'content=request("content")rn'ttime=request("ttime")rnset conn=opendb("oabusy","conn","accessdsn")rnrnsql = "UPDATE wra100 Set jianhao=jianhao wentimiaosu=wentimiaosu chuliqingk=chuliqingk wanchengriqi=wanchengriqi zhuangtai=rdo where id= " & request("id") rnrnconn.Execute(sql)rnconn.closernEnd Ifrn%>rnrn哪里错了,更新不了?
sql语句哪里出错了?
错误类型:rnMicrosoft JET Database Engine (0x80040E14)rn/ftp/www/reg.asp, 第 26 行rn24行:sqlstr="insert into userinfo (username,password,diskquote,poweruser) values ('" & username &"','"& password &"','"& diskquote & "','" & poweruser & "')"rn25行:if userexits=false thenrn26行: conn.execute sqlstrrn
这个sql句子哪里错了?
stores=Split(store_contents,"!!")rnsql="select song_name,song_singer,song_id from song where song_name In('"&stores&"')"rnrn提示这一行有错误:rnrnMicrosoft VBScript 运行时错误 错误 '800a000d' rn类型不匹配 rnrn/usermanager2.asp,行 224 rnrnstore_contents是从另一个数据表调用的记录,内有多个数组,所以用rnstores=Split(store_contents,"!!"),现从song中调用song_name记录中与store_contents各数组相同部分为条件,选取数据。rnrn这样的调用哪里有问题呢?rnrn
请问这个程序哪里错了...
#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 <(const edgenode& other) constrn rn return weight edge;rnint colors[width*height];rn rnint main(array ^args)rn rn edgenode a; rn //nodevetex b;rn IplImage *pImg,*fImg;rn IplImage *newImg;rn long int i,j,s,t;rnrn fImg=cvLoadImage("ff.jpg",0); rn rn if(!fImg)rn printf("cannot load the file.\n");rn return -1;rn rn rn这是程序的一部分。rn编译时using namespace System报错,rnSystem:does not exit or is not a namespacernrnrnint main(array ^args) 报错rnarray:undeclared identifierrnSystem:is not a class or namespace namernString:undeclared identifierrnsyntax error :'>'rnrnrn求高手指教。rnrn
请问这个程序哪里错了!!
#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请问这个程序哪里错了!!我不知道怎么看都看不出来!我是菜鸟!
请问这个代码哪里错了
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
我的SQL语句哪里错了
对SQL语句还是不熟,只好请教下各位rn"UPDATE[user]rnSET username= ? ,address= ? ,Email= ? rnWHERE (username=?)rnAND("+"Email= ? OR ? IS NULL AND Email IS NULL)rnAND(address= ? OR ? IS NULL AND addr"+"ess IS NULL) ";
这条SQL语句哪里错了?
strSQL="select PERSON.ID,PERSON.NAME,SALARY.BASIC,\rn SALARY.BONUS,SALARY.ADD_DETAIL,SALARY.ADD_TOTAL,\rn SALARY.SUB_DETAIL,SALARY.SUB_TOTAL,SALARY.TOTAL\rn from SALARY,PERSON, where SALARY.PERSON=PERSON.ID\rn and SALARY.YEARMONTH='"+m_strYearMonth+"'order by PERSON.ID";
请问,这个正则表达式,哪里错了?
正则表达式的\w,匹配一个包括下划线的字母或数字,不包括汉字吧rnrn那下面这几句代码:rnstring s = "张三5df2_df";rnint i = Regex.Matches(s, @"\w").Count;rnrni的值应该是7啊,为什么是9呢?匹配的只有7个吧,张三是不应该匹配的吧?
请问这个哪里错了..很简单的!
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做到这个效果吗?
请问这个结构体哪里错了?
#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
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池