Whenever I try to compile my code, these are the errors I get:
CLife.hCode:--------------------Configuration: Life - Win32 Debug-------------------- Compiling... CLife.cpp C:\C++\Life\CLife.cpp(3) : error C2143: syntax error : missing ';' before 'public' C:\C++\Life\CLife.cpp(4) : error C2143: syntax error : missing ';' before '{' C:\C++\Life\CLife.cpp(4) : error C2447: missing function header (old-style formal list?) C:\C++\Life\CLife.cpp(7) : error C2143: syntax error : missing ';' before 'public' C:\C++\Life\CLife.cpp(8) : error C2143: syntax error : missing ';' before '{' C:\C++\Life\CLife.cpp(8) : error C2447: missing function header (old-style formal list?) C:\C++\Life\CLife.cpp(11) : error C2143: syntax error : missing ';' before 'public' C:\C++\Life\CLife.cpp(12) : error C2143: syntax error : missing ';' before '{' C:\C++\Life\CLife.cpp(12) : error C2447: missing function header (old-style formal list?) Error executing cl.exe. Life.exe - 9 error(s), 0 warning(s)
CLife.cppCode:#ifndef CLIFE_H_ #define CLIFE_H_ class Life { public: Life( ); Life( int ); ~Life( ); }; #endif
Code:#include "CLife.h" public Life::Life( ) { } public Life::Life( int param0 ) { } public Life::~Life( ) { }



LinkBack URL
About LinkBacks


