Hi
I've just started programming in C++ today and I'm already encounting a problem. Well when trying to create a simple program to reading a string a output it, there's a lot of errors. Here is my program:
well after compiling it says that std , first and string are undefined indentifirers. Why is it telling me that???Code:#include <iostream.h> #include <string.h> using namespace std; int main() { cout<<"what is your name?"<<endl; string first; cin >> first; cout<<"hi, "<< first; return 0; }
can anyone help me.




Reply With Quote