I am a newbie here. Trying to do my assignment.. Here is my code.
The output I get have a problem.
# include <iostream>
# include <ctime>
# include <string>
using namespace std;
int main ()
cout << endl << "\tWelcome to game centre. I am Joe, your game instructor.\n"
<< "\t\tSnake and Ladder" << endl << endl
<< " Please enter the number of player [maximum 4 players]:" ;
cin >> num_player;
cout << " Enter the " << num_player << " player's name: " << endl;
for ( int j= 1; j <= num_player ; j++ )
cout << j << ". " ;
cout << endl;
System don't allow me to input for name;
I don't understand why~
Is it the getline problem?
can someone fix it for me? T^T