Hi. I just came another problem on another tutorial that involved a header. Why I'm getting error again even I copy exactly and I had linked the file properly.
Code 1
Code:
#include <iostream>
using namespace std;
string SafeCracker(int SafeID){
return "Helllo" ;
}
Code 2
Code:
#include <iostream>
#include "safestuff.h"
using namespace std;
int main()
{
cout << "Surprise, surprise!" << endl;
cout << "The combination is (once again)" << endl;
cout << SafeCracker(12) << endl;
return 0;
}
header:
Code:
using namespace std;
#ifndef SAFESTUFF_H_INCLUDED
#define SAFESTUFF_H_INCLUDED
string SafeCracker(int SafeID);
#endif // SAFESTUFF_H_INCLUDED
Error message that I got for header file: error: 'string' does not name a type