Here is my startout text RPG:
But the thing is, when i input A or 3 it doesn't crash. It works. But when i enter multiple characters it crashes, how can you input multiple characters without it crashing? Thx for ur help.Code:#include <iostream>
using namespace std;
int main()
{
char charname;
cout<<"Welcome to Tri-Dungeon RPG\n";
cout<<"Please name your character: ";
cin>> charname;
cin.ignore();
cout<<"Your character is named "<< charname <<"\n";
cin.get();}