作者hoghcmkcm (HOG)
看板EE_DSnP
标题hw3 的 test
时间Wed Apr 2 19:06:29 2008
我把constructor写好
overload写好
想说test.cpp 没用到其他的
就去 make test
结果跑出一堆error
其中还有一行...
test.cpp:56: undefined reference to `std::cout'
好怪@@
後来我把test.cpp 般到calc目录下
util.h也搬过去
用g++ -c calcModNum.cpp
g++ -c test.cpp
g++ test.o calcModNum.o
./a.out
结果是想看到的
setting modulus...
num[0] = ...
.......
why? 我这样写算是对了吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.174.132
1F:推 ric2k1:改标题来回答... 04/02 20:11