c語言結構體程式設計題,一個C語言結構體程式設計題

時間 2021-10-15 00:23:20

1樓:sherlock_唯心

#include

#include

struct student

;int icount;

struct student *create()

else

pnew = (struct student *)malloc(sizeof(struct student));

printf("please input the student number\n");

scanf("%d", &pnew->inumber);

printf("please input the student name\n");

scanf("%s", pnew->cname);

printf("please input the student math\n");

scanf("%d", &pnew->imath);

printf("please input the student chinese\n");

scanf("%d", &pnew->ichinese);

printf("please input the student english\n");

scanf("%d", &pnew->ienglish);

}free(pnew);

return phead;

}else

}void print(struct student *phead, icount)

}delete(struct student *phead, count)

ppre->pnext = ptemp->pnext;

free(ptemp);

icount--;

}struct student *insert(struct student *phead)

while (pnew->inumber != 0);

return phead;

}void print_80(struct student *phead)

}int main()

}return 0;

}沒除錯過,不知有沒有錯。我是學生錯了望原諒。。

2樓:

連結串列 +結構體,我上課也沒聽,那是迷宮都不會寫。不過關鍵是自己要去主動學.

3樓:匿名使用者

你這傻x,這麼簡單的課堂作業也要問!想直接求**吧?

自己動動腦子!不行直接問老師去,出這麼白痴的題目。

c語言結構體程式設計題,求大神!

求大神幫編寫一個c語言結構體的程式,題目如下:

4樓:匿名使用者

#include

#include

#include

int n = 0;

struct student;

int inputandoutput(struct student *stu)

printf("學生資訊統計完畢: \n");

for(i=0; i

5樓:匿名使用者

根據zhi問題描述,學生dao對應的結構體內,可以定義如下:

struct student;

c語言程式設計題,C語言程式設計題

用夢竹 include define n 3 int main b n n i,j for i 0 i 3 i for j 0 j 3 j b i j a 2 i j for i 0 i 3 i return 0 時間有限,只做了第一個。注 如果題目上有例子,可以直接按例題寫 這個 如果想改可以改n...

c語言程式設計題,c語言程式設計題

文庫精選 內容來自使用者 小微風信 實驗一 簡單的c程式設計 2學時 一 實驗方式 一人一機 二 實驗目的 1 瞭解c語言程式的編譯環境和編寫過程。2 掌握c語言程式在visual c 6.0環境下的除錯過程。3 初步瞭解c語言程式的特點。4 掌握c語言的資料型別。三 實驗內容 1 計算兩個數x和y...

資料結構程式設計題 c語言 ,C語言版資料結構程式設計題

淺倚深微 include define n 20 本題使用一個運算子棧st,當遇到的 時 判斷棧頂是否為相應的括號,若是退棧繼續執行 否則演算法結束 char st n int i 0 bool push char x bool pop char p p st i return true void ...