Home > Back-end >  About c language structures.
About c language structures.

Time:01-08

Just learn c, also please bosses can teach a thing or two, in this thank you bosses in advance??
May can't see images, send the source code,
# include
Int main ()
{
Struct student
{
int num;
char name[20];
int score;
} a, [2].
Printf (" do input the students infornation: \ n ");
for(int i=0; i<2; I++)
Scanf_s (" % d, % s, % d ", & amp; A [I]. Num, & amp; A [I]. Name, 20, & amp; A [I] score);
Printf (" The who student score is: ");
If (a [0]. Score & gt; A [1]. Score)
Printf (" % d % d % s ", a [0] num, a [0]. Name, a [0] score).
The else
If (a [0]. Score & lt; A [1]. Score)
Printf (" % d % d % s ", a [1]. The num, [1]. A name, a [1]. The score).
//else printf (" get the same score ");
return 0;

}
  • Related