im trying to make a rpg game and im using stings so the user can enter his/her name...but when the user enters her name all it prints back is numbers when its suposed to print the name the user entered...how do i fix it?
#include <iostream>
#include <cstdlib>
usingnamespace std;
int main()
{
int yourname [20];
int strike;
int shoot;
int heal;
int yourhealth;
int comphealth;
cout << "Enter your name: ";
cin >> yourname [20];
cout << yourname [20];
cin.get();
return 0;
}