I don't know why is program is doing an infinite loop. After I enter the number of students it keeps asking for more students beyond the number I specified. Also i need to bubble sort the students names with the corresponding score and I don't know where to begin. Then calculate average of the scores and display it.
This is my code so far:
#include <cstdlib>
#include <iostream>
using namespace std;
void testSize(int); // validates user input for size
void getData(int size, int [], char [][6]);
int main(int argc, char *argv[])
{
int Scores[5];
char Students [5][6];
int size;
Thanks it doesn't keep going but how can i validate the users input when they have to put the students name. So that they can't put a number or a single character.