Thanks a lot
I got it to work, but its a little unclear to me still. Here is the code that I changed to look like what you mentioned earlier
Sample.h
sample.cpp
Code:
#include<iostream>
#include<sample.h>
using namespace std;
void sample(){
cout << "help" << endl;
}
trial.cpp
Code:
#include<iostream>
using namespace std;
#include "sample.cpp"
int main()
{
sample();
system("Pause");
return 0;
}
And one list thing. in order to include a file does it have to be after the namespace std; ? because when i put it in before it gives errors.
So this follows the spltting of files into 3 separate ones. implement, the code, and i forget the last one.