急求用C或C 編寫的學生成績管理程式

時間 2021-08-13 14:24:10

1樓:匿名使用者

我自己做的,你看行不行:

/*模擬學生資訊查詢系統*/

#define list_init_size 10 //確定分配空間大小

//#define list_more 1o //分配增量

#include

#include

#include

#include //getch()

#include

typedef struct student

student;

typedef structsqlist;

/////下面是函式的原型宣告

int initlist(sqlist &sl); //順序表初始化

int creat(sqlist &sl);//順序表的建立

順序表的插入操作

int search(sqlist sl,int pos);//按指定位置刪除

順序表的按位置刪除操作

順序表的按學號刪除

int out_list(sqlist sl);//順序表的輸出操作

////////主函式///////////

void main()

else if(n==1)//清空

}else if(n==2)//建立

else if(n==3)//插入

else if(n==4)//刪除

else if(n==6)//顯示

out_list(sl);

else if(n!=0||n!=1||n!=2||n!=3||n!=4||n!=5||n!=6)

cout<<"您的輸入有誤,請重新輸入!\n";

}//while

}/////函式定義////////////////////////////

int initlist(sqlist &sl)

sl.length=0;

sl.listsize=list_init_size;

return 1;

}////建立操作/////

int creat(sqlist &sl)

struct student *p;

for(p=sl.stu;pno,elem.no )==0)

int search(sqlist sl,int pos)

cout<<"以下是您要找的學生資訊:\n\n";

cout<<"學生姓名:"<>pos;

if(pos<1||pos>sl.length)

struct student *p,*q;

p=&(sl.stu[pos-1]);

elem=*p;

q=sl.stu+sl.length-1;

for(++p;p<=q;++p)

*(p-1)=*p;

--sl.length;

cout<<"已刪除,請檢查輸出!\n\n";

return 1;

if(flag)break;

}if(flag)

else

}////輸出///

int out_list(sqlist sl)

else

cout<<"~~~共有資訊"<

}//else

return 1;}

2樓:cfw服裝人才網

C語言編寫 學生成績管理系統 ,求高手幫忙

自己寫吧,哪不會可以問,但不要太懶惰。c語言設計學生成績管理系統v1.0。急求啊。高手幫幫忙啦 先謝謝咯 o o哈哈 include define arr size 30 void sort float score,long num,int n void ss float score,long nu...

求C語言編寫的「學生成績管理系統」的程式??帶有流程圖的最好

你要的話,我發給你呀,我這邊有 給我留個郵箱就是 急求c語言 學生成績管理系統 程式及流程圖 要簡單的 自我程式設計 要最簡單,抄學生成績定義一襲個int陣列,姓名bai或學號定義du一個char陣列。定義一個變數 zhin記錄當前dao陣列儲存的學生個數,初值0。新增學生資訊就給這兩個陣列賦值就好...

關於C編寫簡單的學生成績管理系統 通過本系統能實現

include include using namespace std const int n 5 class student student student student student char name,char numble,char float a,float b,float c voi...