PTA 建立學生鍊錶

2021-09-14 03:08:57 字數 538 閱讀 4042

本題要求實現乙個將輸入的學生成績組織成單向鍊錶的簡單函式。

void

input()

;

該函式利用scanf從輸入中獲取學生的資訊,並將其組織成單向鍊錶。鍊錶節點結構定義如下:

struct stud_node 

;

單向鍊錶的頭尾指標儲存在全域性變數head和tail中。

輸入為若干個學生的資訊(學號、姓名、成績),當輸入學號為0時結束。

#include

#include

#include

struct stud_node

;struct stud_node *head,

*tail;

void

input()

;int

main()

/* 你的**將被嵌在這裡 */

void

input()

}

PTA 建立學生資訊鍊錶

題目鏈結 需要許可權 本題要求實現乙個將輸入的學生成績組織成單向鍊錶的簡單函式。函式介面定義 void input 該函式利用scanf從輸入中獲取學生的資訊,並將其組織成單向鍊錶。鍊錶節點結構定義如下 struct stud node 單向鍊錶的頭尾指標儲存在全域性變數head和tail中。輸入為...

PTA函式題 學生成績煉表處理

6 39 學生成績煉表處理 20分 本題要求實現兩個函式,乙個將輸入的學生成績組織成單向鍊錶 另乙個將成績低於某分數線的學生結點從鍊錶中刪除。函式介面定義 struct stud node createlist struct stud node deletelist struct stud node...

PTA 學生成績煉表處理(C語言)

本題要求實現兩個函式,乙個將輸入的學生成績組織成單向鍊錶 另乙個將成績低於某分數線的學生結點從鍊錶中刪除。struct stud node createlist struct stud node deletelist struct stud node head,int min score 函式cre...