Can someone please tell me what i am doing wrong here.
when i changed cin>>stuinfo[i].name to getline(cin,stuinfo[i].name);. it's skipping the getline(cin,stuinfo[i].name); the second time in the for loop.
basically the input i'm getting right now is
Input student name: sfas asdf
Input test score 1 : 32
Input test score 2 : 32
Input test score 3 : 32
Input test score 4 : 32
Input test score 5 : 32
Input student name: Input test score 1 :
so yeah, for some reason after the first time it completely disregarded the getline(cin,stuinfo[i].name);.