PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
EE_DSnP
[问题] make test时看不到myStr2Int
楼主:
pigs57052000
(pigs5705)
2012-10-31 02:09:45
我在make test时
他说'myStr2Int' was not declared in this scope
我知道myStr2Int是在string.cpp里面
我是应该要自己把它include进来吗?
还是我哪里弄错了呢?
作者:
ric2k1
(Ric)
0000-00-00 00:00:00
哪一个档案有用到 myStr2Int?
楼主: pigs57052000 (pigs5705)
0000-00-00 00:00:00
calcModNum.h里面的getStrVal不是叫我们用吗?
作者:
ypf791
(路人1号)
0000-00-00 00:00:00
1) 把getStrVal移到.cpp定义 2) 在.h里include "util.h"
楼主: pigs57052000 (pigs5705)
0000-00-00 00:00:00
compile没有error了 但我ref/testMC-64执行的结果是Error: using testMC <int> <int> <int>!!这又是哪里出问题了吗?
作者:
steve1012
(steve)
0000-00-00 00:00:00
你要打./testMC 1 2 3才行 后面要给他三个参数然后因为一般function会打在.cpp里面所以.h没有帮你include util.h
继续阅读
[问题] 请问static map的initialize?
charleykuo97
[请益] 要怎么在执行间中断无穷循环
andy13579372
[问题] C/C++ Debug assertion Failed!
andice780101
[心得] 自制生command小程式(hw3)
stmharry
[问题] myStrNcmp的用法
hushchai
Re: [情报] Lecture Notes #4 & 7 are now online
ric2k1
[问题] 老师的ref prgram modCalc-64
XDucka
Re: [问题] readCmd()
ric2k1
[问题] readCmd()
XDucka
[公告] TA 与 TA Hours
ric2k1
Links
booklink
Contact Us: admin [ a t ] ucptt.com