Home > Back-end >  For C language small white issue of array
For C language small white issue of array

Time:06-03

#include
Int main ()
{int I, j, a [50], [2], N, m, t;
Printf (" please enter the need to input the number of \ n ");
The scanf (" % d ", & amp; N);
Printf (" please enter the student id and achievements of students \ n ");
for(i=0; ifor(j=0; j<2; J++)
{the scanf (" % d ", & amp; A [I] [j]); }
For (m=0; Mfor(i=0; i{if (a [I] [1] & gt; A [I + 1] [1])
{t=a, [I] [j].
A [I] [j]=[I + 1] a [j + 1);
A [I] [j]=t; }
Printf (" % d ", a [I] [j]);
}
return 0;
}

(figure 1 is the program I wrote above, is run as a result, figure 2 is the title)
Please help me to answer it is where he has gone wrong thank you

CodePudding user response:

Thank you I hope you can help me to answer it

CodePudding user response:

Alas, there are problems at the back of the input, m, I, j relationship three didn't make sense, you see m how do you use

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
  • Related