……论坛上有很多人回答了……这是单纯的编程语言问题,不用发到这儿来的……去CSDN上问也许更好。
在 2011年1月8日 下午2:16,20040428mm <2004042...@gmail.com>写道: > 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 mailing list > ubuntu-zh@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh > -- Robot Shell http://robotshell.org/ -------------- 下一部分 -------------- 一个HTML附件被移除... URL: <https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20110108/c14050c7/attachment.html> -- ubuntu-zh mailing list ubuntu-zh@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh