I ve five different arrary of test scores
person 1 -> test_score1[4]
person 2 -> test_score2[4]
how to change to array of test_score1 to test_score2 in for loop for person1 to person2 to insert the values in test_score array.
person 1 -> test_score1[4]
person 2 -> test_score2[4]
how to change to array of test_score1 to test_score2 in for loop for person1 to person2 to insert the values in test_score array.
Code:
for(int i=0;i<5;i++)
{
cout<<"Give the name of the student "<<i+1<<": ";
cin>>names[i];
cout<<"Give the four test score for "<<names[i];
for(int j=0;j<4;j++)
{
cout<<"Test "<<i+1<<" : ";
cin>>test_score_arr1[i]; //how to change the array of test_score1 to test_score 2 for next loop
}
}
Comment