看板 EE_DSnP 關於我們 聯絡資訊
In file included from util.cpp:9: myUsage.h: In member function ‘double MyUsage::checkMem() const’: myUsage.h:71: error: ‘strncmp’ was not declared in this scope myUsage.h:73: error: ‘strchr’ was not declared in this scope make[1]: *** [util.o] Error 1 Checking main... > compiling: adtTest.cpp In file included from ../../include/util.h:13, from adtTest.cpp:9: ../../include/myUsage.h: In member function ‘double MyUsage::checkMem() const ’: ../../include/myUsage.h:71: error: ‘strncmp’ was not declared in this scope ../../include/myUsage.h:73: error: ‘strchr’ was not declared in this scope make[1]: *** [adtTest.o] Error 1 make: *** [main] Error 2 剛下載下來先compile試試看 結果就出現以上訊息 而且感覺不是這次作業要寫的部份 求高手幫忙 -- 傳道者說;虛空的虛空,虛空的虛空,凡事都是虛空。 傳道書1;2 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 175.182.120.234
djshen:include<cstring> 11/23 20:29
shryuhuai:感謝解答!! 11/23 20:42
ric2k1:推!! 忘記 include 了,有的機器會過... 11/23 21:17