Home > Back-end >  C language student status management system name query which brother where no help
C language student status management system name query which brother where no help

Time:09-21


Void search5 ()
{
int a;

Score * p;
Score * p1;

P1=head;
P1=(score *) malloc (sizeof (score));
system("cls");
Printf (" \ n please input query methods: 0 dropped out of the query 1 according to the student number query 2 according to the name query \ n ");
Scanf_s (" % d ", & amp; A);
system("cls");
Printf (" please enter the need to query the student's name \ n ");
Scanf_s (" % s ", & amp; P1 - & gt; The name, 10);
getchar();
For (p=head - & gt; next; P!=NULL; P=p - & gt; Next)
{
If (p1 - & gt; Name==p - & gt; Name)
{
Printf (" student id \ \ t t name scored an average Chinese \ \ t t English math \ t \ n ");
Printf (" % d \ t \ \ t t % s % 1 f \ t % 1 f \ t % 1 f \ t % 1 f \ n \ n ", p - & gt; Number, p - & gt; The name, p - & gt; Yuwen, p - & gt; Yingyu, p - & gt; Math, p - & gt; Ave);
getchar();

break;
}



}
Printf (" does not exist the student \ n ");
getchar();
break;
}

CodePudding user response:

Strives for the leading members,,, online etc. Be urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • Related