作者herbert1012 (一定要填喔)
看板EE_DSnP
标题[问题] strcpy
时间Sun Oct 25 17:15:20 2009
我compile後
出现很多错误讯息
不意外
但是最後一个是
错误: 「strcpy」 在此作用栏位中尚未宣告
有点奇怪
因为cmdParser.h不是有include <string>了吗?
然後我自己加include "string.h"就没那个错误了
想请教一下是为什麽阿??
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.211.52.83
1F:推 flarehunter:strcpy 是c的字串处理函式 放在string.h里 10/25 17:19
2F:推 yehes2001:#include "string.h" 是c里面针对char* 的一些functions 10/25 17:19
3F:→ yehes2001:例如: strcpy strcmp. #include <string>是string class 10/25 17:20
4F:→ ilway25:最好是 #include <cstring> 啦.. 10/25 17:36
5F:推 ric2k1:2312 篇不是回过了吗? 10/25 17:54
6F:推 anfranion:就算要string.h,习惯上应该还是会写<string.h> 10/25 20:37
7F:→ herbert1012:有耶没看到那篇 拍谢= = 10/25 20:49