I am trying to use .h and .cpp file in a program that I working on. I can not seem to get it to work.
Is this the correct format?
This is my .h file
Code://big.h #include <iostream> #include <iomanip> #include <string> using namespace std; class foo { public: void BlaBla); private: };
This is the .cpp file
Code:// big.cpp #include <iostream> #include <iomanip> #include <string> #include "big.h" void BlaBla() { ... ... }
This is my main file
Code:#include <iostram> #include <iomanip> #include <string> #include "big.h" using namespace.std; int main() { ... ... function from Big.cpp file }



LinkBack URL
About LinkBacks


