Ok, well i started learning C++ yesterday and i was doing fine untill i started a text game, which went wrong =(
This is what happens when i compile it:
How can i make those stupid characters go away, and make it print the name you insert?
Thanks.
Code:
#include <iostream>
using namespace std;
void main()
{
char name;
cout << "Welcome To The Adventure Text Game" << "\n";
cout << "Please Choose a name: " << name;
cin >> name;
cout << name << "\n";
}
This is what happens when i compile it:
How can i make those stupid characters go away, and make it print the name you insert?
Thanks.


