Also, name is an string, not an integer. There for instead if int name; put string name;.
You don't need int final because it is a waste of space and your program takes up un-needed memory. It is like drawing a box and not using it and it takes up space in your attic.
Also, you don't need return EXIT_SUCCESS because the program is already done.
Finally, make sure you put endl; at the end of your c-outs so a line is skipped and your program looks neater and user-friendly. cout<<"What is your name?"<<endl;
So here is the final code:
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
usingnamespace std;
main()
{
string name;
cout<<"What is your name?"<<endl;
cin>>name;
cout<<"You name is: "<<name<<endl;
system ("PAUSE");
}
Also, if you go to the documents on this website, they teach you how to use functions, etc... it help a lot.