I am just trying to learn C++ and I have just been frustrated beyond belief. I'm working on a simple little program from a text book that is just supposed to ask for your name and greet you and no matter what I try to do I cannot get it to work. My program looks something like this.
/*String type demo program*/
cout<<"Enter your name:";
cout<<"!Nice to meet you!"<<endl;
and these are the 3 errors I recieve:
1. String type Demo.cpp(9) : error C2065: 'string' : undeclared identifier
2. String type Demo.cpp(9) : error C2146: syntax error : missing ';' before identifier 'Name'
3.String type Demo.cpp(9) : error C2065: 'Name' : undeclared identifier
If someone can help me out it would be greatly appreciated, thanks a lot