t.cpp file#include
#include "test.h"
// void increasement(Time &, const int);
main()
{
Time t;
t.sethour(17);
t.setmin(34);
t.setsec(25);
cout (more...)
这三个file都在同一个目录下
用borland c compiler运行
Error E2040 d:\c\lib\test.h 4: Declaration terminated incorrectly
Error E2090 d:\c\lib\test.cpp 4: Qualifier 'Time' is not a class or namespace name
Error E2040 d:\c\lib\test.cpp 4: Declaration terminated incorrectly
有谁知道该怎么办呢?谢谢.
Error E2040 d:\c\lib\test.h 4: Declaration terminated incorrectly
Error E2090 d:\c\lib\test.cpp 4: Qualifier 'Time' is not a class or namespace name
Error E2040 d:\c\lib\test.cpp 4: Declaration terminated incorrectly
有谁知道该怎么办呢?谢谢.