pls help me about my problem.. i dont know how to group the names into three group.. pls help me. according to my teacher we will use the 2D arays but i dont know how to use it... heres my code..
for( int i = 0; i < MAX; i++ )
{
cout << names[ i ] << " ";
}
for( int i = 0; i < MAX; i++ )
{
random = rand() % 35 ;
char *temp = names[ i ];
names[ i ] = names[ random ];
names[ random ] = temp;
}
cout << "\n\nThose names randomized.." << endl;
cout<<"Input the number of the student: ";
cin>>a;
for( int i = 0; i < MAX; i++ )
{
cout << names[ i ] << " ";
}