I bought a used copy of Learning to Program in C++ by Steve Heller. It ususally comes with DJGPP Compiler, but mine was used and didn't have it. I just use Borland C++ 5.0
Anyways one of the examples in the book has
#include "string6.h"
my guess is for the part in the code that says
string answer;
Anyways when I compile the program I get
Unable to open include file 'string6.h'
Undefind symbol 'string'
I'm guessing that Borland 5 doesn't use the header string6.h and only DJGPP does, but I can't find what the substitute would be for Borland so I can make this program work. Please help.
Here is the whole source if needed
__________________________________________________ __
#include <iostream.h>
#include "string6.h"
int main()
{
string answer;
cout << "Please respong to the following statement ";
cout << "with either true or false\n";
cout << "Susan is the world's most tenacious novice.\n";
cin >> answer;
if(answer !="true")
if(answer !="false")
cout << "Please answer with either true or false.";
if(answer =="true")
cout << "Your answer is correct\n";
if(answer=="false")
cout << "Your answer is erroneous\n";
return 0;
}