[Ubuntu-zh] 请问这个是什么情况?【C语言】

20040428mm 20040428mm在gmail.com
星期六 一月 8 06:16:47 UTC 2011


g++ -Wall -c "加密.cpp" (在目录/home/kzk/编程/C中)
加密.cpp: In function ‘void jia_mi(char*)’:
加密.cpp:49: error: invalid conversion from ‘char*’ to ‘char’
编译失败
加密.cpp: In function ‘void jie_mi(char*)’:
加密.cpp:62: error: invalid operands of types ‘char’ and ‘char*’ to binary
‘operator-’
加密.cpp:62: error:   in evaluation of ‘operator-=(char, char*)’
加密.cpp: In function ‘void read()’:
加密.cpp:81: warning: format ‘%c’ expects type ‘char*’, but argument 2 has
type ‘int’
加密.cpp:86: error: invalid conversion from ‘char’ to ‘char*’
加密.cpp:86: error:   initializing argument 1 of ‘void jia_mi(char*)’
加密.cpp:92: error: invalid conversion from ‘char’ to ‘char*’
加密.cpp:92: error:   initializing argument 1 of ‘void jie_mi(char*)’


源码:http://forum.ubuntu.org.cn/viewtopic.php?f=77&t=313241
[?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?][?]
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: <https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20110108/45d91936/attachment.html>
-------------- 下一部分 --------------
A non-text attachment was scrubbed...
Name: 323.png
Type: image/png
Size: 612 bytes
Desc: 不可用
URL: <https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20110108/45d91936/attachment.png>


关于邮件列表 ubuntu-zh 的更多信息