Subject is to write a C language program, first enter a group of student's name, grade, expressed in 1 input end, let mother you input a certain interval value, and find the area between all student achievement,
Help bosses I this program error point, thank you
CodePudding user response:
Scanf_s (" % s ", & amp; A [n]);//error writing
Scanf_s (" % s ", a, n);//correct term
CSDN BBS newbie guide
CodePudding user response:
Should be scanf_s (" % s ", a, sizeof (a));CodePudding user response:
The landlord to enter a student's name and grade? Enter multiple students name and grades,I read the original poster is the second situation, then define a two-dimensional array
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html