What's wrong with what I'm typing please?

Please tell me if there's anything wrong with the following please. I'm a beginner. I've only been doing this for a few days, and I'm just starting to get the knack of it. Please try to type it correctly highlighting my mistakes please. Thank you. Underlining would be the best way please. Adios! =)
#include <iostream>
#include (stdlib.h>
#include <string>
int main(int argc, char *argv[])
{
string mystring;
mystring = "Hello there";
cout << mystring << endl;
return 0;
}
#include <stdlib.h>


You had a '('.

Btw, you don't need to include stdlib.h anyway since you are using only C++ facilities.
Oh no, that was just a typo. When I typed the actual program I typed #include <stdlib.h> but thank you anyways.
Ah, you need "std::" in front of string, cout, and endl.

Oh, and remember code tags next time:
http://www.cplusplus.com/articles/firedraco1/
Last edited on
Thank you. That worked perfectly. I wonder why it did not say that in the book. Thank you. =)
Topic archived. No new replies allowed.