here is the code for my .cpp and .h files, they are not compiling, i am getting the error in .cpp file in the line #include "Class.h"
The error message is
3 class.cpp Class.h:6: parse error before `;'
Please help!
Class.h
Code:#ifndef Class_H #define Class_H using namespace std; class Class { private; char class_name; char no_of_subjects; public: Class(); int findtotal(); } ; #endif
Class.cpp
Code:#include <iostream> #include "Class.h" Class::Class Class() { ; } int Class::findtotal() { ; }




Reply With Quote