国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

C語言學(xué)生管理系統(tǒng)代碼(部分)

2023-04-09 21:33 作者:來追我啊呵呵  | 我要投稿

#include "student_mag.h"


int main()

{

Node* head = malloc(sizeof(Node));

head->next = NULL;

while (1)

{

welcome();


char ch = _getch();


switch (ch)

{

case '1':

Inputstudent(head);? //錄入學(xué)生信息

break;

case '2':

Printstudent(head);? //打印學(xué)生信息

break;

case '3':

Countstudent(head);? //統(tǒng)計學(xué)生信息

break;

case '4':

Findstudent(head);? //查找學(xué)生信息

break;

case '5':

break;

case '6':

break;

case '7':

break;

default:

break;


}

}


return 0;

}


void Inputstudent(Node* head)

{

Node* fresh = malloc(sizeof(Node));

fresh->next = NULL;

printf("請輸入學(xué)生信息\n");

scanf("%d%s%d", &fresh->stu.num, fresh->stu.name, &fresh->stu.sorce);

Node* move = head;

while (move->next!=NULL)

{

? move = move->next;

}

move->next = fresh;


system("pause");

system("cls");


}


void Printstudent(Node* head)

{

Node* move = head->next;

while (move!=NULL)

{??

printf("學(xué)號:%d,姓名:%s,分數(shù):%d\n", move->stu.num, move->stu.name, move->stu.sorce);

move = move->next;

}

system("pause");

system("cls");

}


void Countstudent(Node* head)

{? ?

int count = 0;

Node* move = head->next;

while (move!=NULL)

{

count++;

move = move->next;

}

printf("學(xué)生人數(shù)為%d\n", count);

system("pause");

system("cls");

}

void Findstudent(Node* head)

{? ?

printf("請輸入學(xué)生學(xué)號:");

int stunum;

scanf("%d", &stunum);

Node* move = head->next;

while (move!=NULL)

{

if (stunum == move->stu.num)

{

printf("學(xué)號:%d,姓名:%s,成績%d\n", move->stu.num, move->stu.name, move->stu.sorce);

system("pause");

system("cls");

return;

}

move = move->next;

}

printf("未找到學(xué)生\n");

system("pause");

system("cls");

}


C語言學(xué)生管理系統(tǒng)代碼(部分)的評論 (共 條)

分享到微博請遵守國家法律
南昌市| 潼南县| 定襄县| 资兴市| 大英县| 平山县| 容城县| 修水县| 蒲江县| 山东省| 连云港市| 绥芬河市| 奉新县| 资兴市| 任丘市| 江孜县| 昆山市| 河南省| 南靖县| 沿河| 裕民县| 南平市| 女性| 苍梧县| 清水河县| 高清| 连城县| 革吉县| 新宾| 米脂县| 会同县| 工布江达县| 南康市| 崇义县| 麻城市| 鄂伦春自治旗| 丹寨县| 邯郸市| 五台县| 五莲县| 谢通门县|