这三个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
有谁知道该怎么办呢?谢谢.
好像C++的class没有modifier吧
试着改一下:
in test.h, remove the "public" before "class"
class Time
{
public:
...
...
};
in test.h, remove the "public" before "class"
class Time
{
public:
...
...
};
You may say I'm a dreamer
but I'm not the only one...