|
-
Nov 11th, 2004, 05:10 PM
#1
Thread Starter
Addicted Member
Header Files HELP?!?!?!
Why won't my code recognize a header file? It won't compile for some reason? Please Help. The code is written right from the C++ for Dummies book.
main.cpp
#include <iostream>
#include <stdlib.h>
#include "safestuff.h"
using namespace std;
int main(int argc, char *argv[])
{
cout << "Surprise, surprise!" << endl;
cout << "The combination is (once again)" << endl;
cout << SafeCracker(12) << endl;
system("PAUSE");
return 0;
}
safestuff.h
#include <safestuff.h>
string SafeCracker(int SafeID);
safestuff.cpp
#include <string>
#include <safestuff.h>
string SafeCracker(int SafeID) {
return "13-26-16";
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|