Hi everybody,
I am trying to input a character and right away an array of characters...
However once i input the character, it doesnt let me input the array character and the program ends...
Consider this:
Any suggestions?Code:char grade[4] ={NULL}; cout << "Enter grade: "; grade[0] = cin.get(); // I am inputting character here but... char a[100] = " "; cout << endl << "Enter name: "; // ...here it just displays message... cin.getline(a, 80, '\n'); // program ends without letting me input