下面是VC6。0里的,是什么意思啊?

[复制链接]
查看11 | 回复3 | 2009-3-14 15:01:48 | 显示全部楼层 |阅读模式
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2143: syntax error : missing ';' before 'type'
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2143: syntax error : missing ';' before 'type'
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2143: syntax error : missing ')' before 'type'
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2143: syntax error : missing ';' before 'type'
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2065: 'i' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : warning C4552: '<' : operator has no effect; expected operator with side-effect
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(6) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\MyProjects\ads\dsd.c(7) : error C2143: syntax error : missing ';' before '{'
Error executing cl.exe.
ads.exe - 7 error(s), 1 warning(s)

回复

使用道具 举报

千问 | 2009-3-14 15:01:48 | 显示全部楼层
就是你的程序里出错了,7个错误,1个警告,这里只说错误:1-4:少了个分号,5: i没有定义,6 :括号错误,不能是中文的括号,应该是英文的括号, 7: { 前少了分号:如果想找具体错误的话,直接在VC6里双击上面的错误,一般就可跳到出错行了...
回复

使用道具 举报

千问 | 2009-3-14 15:01:48 | 显示全部楼层
出现这种错误也并不是他提示的地方你都有错,也许是你定义变量或用“;”和“,”出现混乱,也许改一处就全部没错了。具体方法:将鼠标移到错误提示处双击,她就会在源程序上有所指示,找到错误的根源就好改了。总之没看到源程序就不好说。祝你好运!...
回复

使用道具 举报

千问 | 2009-3-14 15:01:48 | 显示全部楼层
程序中某些语句少了 ) 和 ;...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行