|
You are using Visual C++ 6? If so, then it should work unless you have messed up your files. Like, moving them around and stuff. Or you messed up the dependencies.
Anyways, a last test (though conceptual totally irrelevant at this very moment!!):
Place : string test="abc";
before your cout statement, in your main() method.
Though it is clear (based upon the output error) that your compiler does not locate your string header file correctly.
This happens when you move the standard library OR mess them up OR declare vars and methods on the wrong spot. The latter case (declaring stuff on the wrong spot) is not the case clearly, since your code is correct.
UNINSTALL VC++ 6 completely and then RE-INSTALL.
|