Esflagos's Posts
Nairaland Forum › Esflagos's Profile › Esflagos's Posts
1 (of 1 pages)
Odor Emmanuel Email: e-odor@niftynetworks.net Phone:07037411553 Skills Java C++ Php/MySQL(4/5),HTML/CSS(5/5),JavaScript Am waiting to be a part of it. |
pls i need java ebooks and avdance java ebokks thanks esf_lagos@yahoo.com |
pls i would like u to help me in c++ am a beginner and am not familiar with all the concept here . i want you to show me how to usev th heafer file and sourse file . secondly how to set class functions and variables |
Am a beginner in c++ .pls i need a c++ programmer to enlighten me on how to open header files and Defining a Class with a Member Function. i bought this book c++ how to program , 6/e deitel and in the chapter three of it i am finding it difficult to write the examples there |
pls am new to c++ programming and am ahving problems in trying to debug this class . pls if there is any boby that could enlighten me more on how to open an header file and Defining a Class with a Member Function. thankz. after i deggued this function displayMessage, // create a GradeBook object, and call its displayMessage function. #include <iostream> using std::cout; using std::endl; // GradeBook class definition class GradeBook { public: // function that displays a welcome message to the GradeBook user void displayMessage() { cout << ”Welcome to the Grade Book!” << endl; } // end function displayMessage }; // end class GradeBook // function main begins program execution int main() { GradeBook myGradeBook; // create a GradeBook object named myGradeBook myGradeBook.displayMessage(); // call object's displayMessage function return 0; // indicate successful termination } // end main it wrote 1>------ Build started: Project: gradebooked, Configuration: Debug Win32 ------ 1>Compiling, 1>gradebooked.cpp 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(1) : error C2146: syntax error : missing ';' before identifier 'displayMessage' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2059: syntax error : 'extern ' 1>c:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2143: syntax error : missing ';' before '{' 1>c:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2447: '{' : missing function header (old-style formal list?) 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: '”Welcome' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2146: syntax error : missing ';' before identifier 'to' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: 'to' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2146: syntax error : missing ';' before identifier 'the' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: 'the' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2146: syntax error : missing ';' before identifier 'Grade' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: 'Grade' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2146: syntax error : missing ';' before identifier 'Book' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: 'Book' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2143: syntax error : missing ';' before '!' 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2065: '”' : undeclared identifier 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2563: mismatch in formal parameter list 1>c:\users\pensure\documents\visual studio 2005\projects\game\game\gradebooked\gradebooked\gradebooked.cpp(13) : error C2568: '<<' : unable to resolve function overload 1> c:\program files\microsoft visual studio 8\vc\include\ostream(937): could be 'std::basic_ostream<_Elem,_Traits> &std::endl(std::basic_ostream<_Elem,_Traits> & '1> c:\program files\microsoft visual studio 8\vc\include\ostream(963): or 'std::basic_ostream<_Elem,_Traits> &std::endl(std::basic_ostream<_Elem,_Traits> & '1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char> 1> ] 1> c:\program files\microsoft visual studio 8\vc\include\ostream(971): or 'std::basic_ostream<_Elem,_Traits> &std::endl(std::basic_ostream<_Elem,_Traits> & '1> with 1> [ 1> _Elem=wchar_t, 1> _Traits=std::char_traits<wchar_t> 1> ] 1>Build log was saved at "file://c:\Users\pensure\Documents\Visual Studio 2005\Projects\game\game\gradebooked\gradebooked\Debug\BuildLog.htm" 1>gradebooked - 19 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
1 (of 1 pages)
'