void getScores(int num])//function that get the user to enter the data
{
for(int i=0;i<10;i++)
{
cout << "enter number(1-100)(-1 to quit)"<<endl;
//the data can't less than 1 and can't more than 100.it suppose when user enter -1,the program stop from prompt the user to enter the data and return.but i don't know how to do it.
cin>>num;
while (num <100 || num >100 )
{
cout <<"invalid score"<<endl;
cout << "enter number(1-100)(-1 to quit)"<<endl;
cin>>num;
}
}
}