the output is:Code:cout << "Please enter a name for your map:" << endl; cin.getline(mapName,sizeof(mapName),'\n'); cout << "Enter the number of map rows:" << endl; cin.getline(rows,sizeof(rows),'\n');
Please enter a name for your map:
Enter the number of map rows:
the first question is being skipped...what am i doing wrong? i've use cin.getline() before and never had a problem with it..
thanks.