初学者,不知错在哪!

acxcod 2009-07-28 09:47:37
这个网址所说的程序,编译时提示这样的错,不知怎样排除,请指教!
http://tech.163.com/05/1109/15/224K4D010009159F.html


出错信息:

--------------------Configuration: winabc - Win32 Debug--------------------
Compiling...
winabc.cpp
d:\kkk\winkkk\winkkk.cpp(3) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(3) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(3) : warning C4081: expected ')'; found 'string'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(7) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(7) : error C2146: syntax error : missing ',' before identifier 'WPARAM'
d:\kkk\winkkk\winkkk.cpp(12) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(12) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(13) : error C2146: syntax error : missing ',' before identifier 'HINSTANCE'
d:\kkk\winkkk\winkkk.cpp(13) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(13) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(14) : error C2146: syntax error : missing ',' before identifier 'LPSTR'
d:\kkk\winkkk\winkkk.cpp(14) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(14) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(15) : error C2144: syntax error : missing ',' before type 'int'
d:\kkk\winkkk\winkkk.cpp(17) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(17) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(17) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'int (struct HWND__ *,unsigned int)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
d:\kkk\winkkk\winkkk.cpp(18) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(18) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(22) : error C2146: syntax error : missing ',' before identifier 'UINT'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(22) : error C2146: syntax error : missing ',' before identifier 'WPARAM'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(22) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(22) : error C2146: syntax error : missing ',' before identifier 'LPARAM'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(34) : error C2143: syntax error : missing ')' before 'constant'
d:\kkk\winkkk\winkkk.cpp(34) : error C2660: 'SendDlgItemMessageA' : function does not take 1 parameters
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(34) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(34) : error C2059: syntax error : ')'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(35) : error C2143: syntax error : missing ')' before 'constant'
d:\kkk\winkkk\winkkk.cpp(35) : error C2660: 'SendDlgItemMessageA' : function does not take 1 parameters
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(35) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(35) : error C2059: syntax error : ')'
d:\kkk\winkkk\winkkk.cpp(36) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(36) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(38) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(38) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(39) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(39) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(40) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(40) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(42) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(42) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(43) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(43) : error C2143: syntax error : missing ')' before 'constant'
d:\kkk\winkkk\winkkk.cpp(43) : error C2660: 'EndDialog' : function does not take 1 parameters
d:\kkk\winkkk\winkkk.cpp(43) : error C2059: syntax error : ')'
d:\kkk\winkkk\winkkk.cpp(44) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(44) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(44) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(44) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(50) : error C2143: syntax error : missing ')' before 'constant'
d:\kkk\winkkk\winkkk.cpp(50) : error C2660: 'SendDlgItemMessageA' : function does not take 1 parameters
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xa3'
d:\kkk\winkkk\winkkk.cpp(50) : error C2018: unknown character '0xac'
d:\kkk\winkkk\winkkk.cpp(50) : error C2059: syntax error : ')'
d:\kkk\winkkk\winkkk.cpp(52) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(52) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(52) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(52) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(53) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(53) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(53) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(53) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(54) : error C2018: unknown character '0xa1'
d:\kkk\winkkk\winkkk.cpp(54) : fatal error C1003: error count exceeds 100; stopping compilation
执行 cl.exe 时出错.

winabc.obj - 1 error(s), 0 warning(s)
...全文
88 点赞 收藏 10
写回复
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
fangchao918628 2009-07-28
重新手动输入一遍!
回复
fandouC 2009-07-28
输入法问题
回复
maple_zhj 2009-07-28
是的,你直接复制的时候,
把全角的字符也复制上去了,
请删光复制到 类似空格的字符。

即可。
回复
gxsxq 2009-07-28
楼主最好自己重新写一遍,看看问题是不是得到解决,输入的时候记得用半角的。

报错的是哪些变量没有定义
回复
reage_wang 2009-07-28
直接复制问题多
回复
xyg_faster 2009-07-28
unknown character '0xa1' .不是很清楚了么
回复
Noak_ark 2009-07-28
同意ls
回复
洗洗睡去 2009-07-28
嗯 是直接拷贝的网页上的换行符,不是标准的格式
回复
快乐鹦鹉 2009-07-28
好像还有语句中的其它标点符号,也是全角。
回复
快乐鹦鹉 2009-07-28
都是同样的错误,就是你拷贝下来时,很多行末尾的分号是全角字符,你仔细看一下,改成半角就可以了。。
回复
发动态
发帖子
VC/MFC
创建于2007-09-28

1.5w+

社区成员

VC/MFC相关问题讨论
申请成为版主
社区公告
暂无公告