I am trying to practice my programming skills by writing a program to mess around with my friends in class. But I am having some trouble doing it.
Here is what I wrote and the error I am receiving.
I am trying to practice my programming skills by writing a program to mess around with my friends in class. But I am having some trouble doing it.
Here is what I wrote and the error I am receiving.
You need to quote the string literal, i.e., "michael" not michael. Also, the correct header for std::string is <string>, not <cstring>. <cstring> is for functions - inherited from C - that work with null terminated strings. You should explicitly declare main as returning an int.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Man that was obvious. I have a lot to learn. But thank you for answering my question.