Mine
public text v1 · immutable#include <iostream>
using namespace std;
int main()
{
char state[50];
cout<<"Please pick a state: ";
cin.getline ( state, 50, '\n' );
cout<<"You have picked "<< state <<endl;
cin.get();
}
#include <iostream>
using namespace std;
int main()
{
char state[50];
cout<<"Please pick a state: ";
cin.getline ( state, 50, '\n' );
cout<<"You have picked "<< state <<endl;
cin.get();
}