code in question folllows, error message is that string was not declared in this scope.
If i declare a string test, it comes back nd tells me that string dos not defin a type.
However, the same code, on the same mavhine, in a different prog works. so why the bliminy flipping heck des it not recognise the string library?
The proper name of 'string' is std::string. If you're not putting it in the global namespace, the compiler will assume you're referring to some other string. If no other string is defined, the compiler complains.
If you didn't know what helios is talking about, you should look up namespaces.
You shouldn't just add lines to your code when you have no idea what they're actually doing.