Hi there. This is one of my first projects in C++ and I'm stack in the beggining!
I don't know what could be wrong.
compiler errors:new types may not be defined in a return type
return type specification for constructor invalid
build error [main.o] error1
main.cpp
geo.hCode:#include "geo.h" #include <cstdlib> #include <iostream> using std::cout; using std::endl; using std::cin ; int main() { system("PAUSE"); return EXIT_SUCCESS; }
Code:#ifndef myheader_h #define myheader_h class MyClass { private: int a,b; public : MyClass(); MyClass(int k, int l); void func(void); } MyClass::MyClass() { a=b=0; } MyClass::MyClass(int k, int l) { a=k; b=l; } void MyClass::func(void) { //cout<<"do something"; } #endif



LinkBack URL
About LinkBacks


