I have declared a string array of [15]. Actually to store names. I execute it fine, but when I enter the complete name (including space; First name+[space]+last name) the program misbehaves. I cannot find the fault
I have declared multiple string arrays in the program, when I input the name with space it doesn't executes fine. I am using cin>>
function to input in the array. like
string name[15];
int count=0; cout << "enter your name" << endl;
cin >> name[count];