-
大小: 1.26MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-20
- 語言: 其他
- 標(biāo)簽:
資源簡介
學(xué)生管理系統(tǒng)(參考),學(xué)生管理系統(tǒng)(參考)學(xué)生管理系統(tǒng)(參考)

代碼片段和文件信息
#include?“func.h“?
void?gotoxy(int?x?int?y)?????
?{?
COORD?c;
c.X?=?x;
c.Y?=?y;
// 用于在相應(yīng)的設(shè)備設(shè)置光標(biāo)的位置,兩個(gè)參數(shù)分別是設(shè)備句柄和光標(biāo)位置結(jié)構(gòu)
//當(dāng)參數(shù)標(biāo)識(shí)為STD_OUTPUT_HANDLE時(shí)獲得標(biāo)準(zhǔn)輸出句柄
SetConsoleCursorPosition?(GetStdHandle(STD_OUTPUT_HANDLE)?c);
}?
void?Welwin()????????//進(jìn)入歡迎界面
{??
gotoxy?(1510);
printf?(“(*^__^*)?歡迎進(jìn)入教學(xué)管理系統(tǒng)(*^__^*)?“);
????Sleep?(1000);
system(“cls“);
}
void?Menuwin?()????????????????//?進(jìn)入主菜單
{
gotoxy?(155);
gotoxy?(174);printf?(“歡迎使用“漏洞百出”教學(xué)管理系統(tǒng)“);
gotoxy?(176);printf?(“?★?------------------------★“);
gotoxy?(177);printf?(“??|?▲1、輸入學(xué)生數(shù)據(jù)??????|“);
gotoxy?(178);printf?(“??|?▲2、查看顯示學(xué)生信息??|“);
gotoxy?(179);printf?(“??|?▲3、查找學(xué)生信息??????|“);
gotoxy?(1710);printf?(“??|?▲4、維護(hù)系統(tǒng)??????????|“);
gotoxy?(1711);printf?(“??|?▲5、系統(tǒng)使用說明??????|“);
????gotoxy?(1712);printf?(“??|?▲6、退出系統(tǒng)??????????|“);
gotoxy?(1713);printf?(“?★-------------------------★“);
gotoxy?(1816);printf?(“※“);
}
struct?student?*Creat(int?*num)????//創(chuàng)建節(jié)點(diǎn)
{
struct?student?*head=NULL*p1*p2;
int?n=0;
p1=p2=(struct?student?*)malloc(sizeof?(struct?student));
Creatput(headp1n+1);
n=1;
while?(strcmp(p1->num“0“))
{
system(“cls“);
if?(head==NULL)
head=p1;
else?
p2->next=p1;
p2=p1;
p1=(struct?student?*)malloc(sizeof(struct?student));
n++;
system(“cls“);
Creatput(headp1n);
}
p2->next=NULL;
*num=n;
return?head;
}
void?Creatput(struct?student?*headstruct?student?*p1int?n)?????//創(chuàng)建節(jié)點(diǎn)后用來輸入節(jié)點(diǎn)信息
{
struct?student?*temp*p;
temp=head;
FILE?*fp;
??? char?ch;
????int?ij;??
p1->sum=0;
p1->creditsum=0;
system(“cls“);
printf?(“請(qǐng)輸入第%d個(gè)學(xué)生的學(xué)號(hào)(0結(jié)束):“n);
scanf?(“%s“p1->num);
while?(temp!=NULL&&strcmp?(temp->nump1->num)==0)
{
printf?(“該學(xué)號(hào)已經(jīng)存在,請(qǐng)重新輸入:“);
scanf?(“%s“p1->num);
}
if?(strcmp(p1->num“0“)!=0)
{
printf?(“請(qǐng)輸入名字:“);
scanf?(“%s“p1->name);
printf?(“性別:“);
scanf?(“%s“p1->sex);
printf?(“年齡:“);
scanf?(“%d“&p1->age);
??
????printf?(“宿舍電話:“);
scanf?(“%s“p1->dortele);
?
printf(“個(gè)人電話:“);
scanf(“%s“p1->mobiletele);
for?(i=0;i<2;i++)?
{
p1->genscore[i]=0;
????printf?(“第%d門課程名稱:“i+1);
????scanf?(“%s“p1->subname[i]);
???
????printf?(“第%d門課程課代號(hào):“i+1);
????scanf?(“%s“p1->subnum[i]);
printf?(“%s這門學(xué)科的學(xué)分“p1->subnum[i]);
scanf?(“%f“&p1->credithour[i]);
??
????printf?(“輸入%s平時(shí)成績:“p1->subname[i]);
????scanf?(“%f“&p1->ordscore[i]);
????printf?(“輸入%s期末成績:“p1->subname[i]);
????scanf?(“%f“&p1->examscore[i]);
????
????p1->genscore[i]=(float)(0.4*p1->ordscore[i]+0.6*p1->examscore[i]);
????p1->sum=p1->sum+p1->genscore[i];
p1->creditsum=p1->creditsum+p1->credithour[i];
????printf(“有重修嗎(Y/N)?“);
????scanf(“?%c“&ch);
p1->restudy[i]=ch;
if(toupper(ch)==‘Y‘)?
{
printf?(“該門課程重修過的次數(shù)“);
????scanf?(“%d“&p1->rstime);
for?(j=0;jrstime;j++)?
{
printf?(“第%d次重修的成績“j+1);
scanf?(“%f“&p1->rescore[j]);
}
}
}
p1->avescore=p1->sum/2;
?if((fp=fopen(“d:\\stu.txt
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????82944??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Teaching?Management.ncb
?????文件??????77824??2007-07-14?09:10??學(xué)生管理系統(tǒng)\Debug\vc60.pdb
?????文件?????680960??2007-07-14?09:10??學(xué)生管理系統(tǒng)\Debug\Teaching?Management.pdb
?????文件?????254976??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Debug\vc60.idb
?????文件?????249945??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Debug\Teaching?Management.exe
?????文件????3576848??2007-07-12?23:26??學(xué)生管理系統(tǒng)\Debug\Teaching?Management.pch
?????文件??????13655??2007-07-12?23:27??學(xué)生管理系統(tǒng)\Debug\main.obj
?????文件?????359536??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Debug\Teaching?Management.ilk
?????文件??????81243??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Debug\func.obj
?????文件????????951??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Teaching?Management.plg
?????文件???????4545??2007-07-09?15:30??學(xué)生管理系統(tǒng)\Teaching?Management.dsp
?????文件????????546??2007-07-09?15:30??學(xué)生管理系統(tǒng)\Teaching?Management.dsw
?????文件????????872??2007-07-12?18:29??學(xué)生管理系統(tǒng)\main.cpp
?????文件???????2831??2007-07-12?23:26??學(xué)生管理系統(tǒng)\func.h
?????文件??????24524??2007-07-13?00:02??學(xué)生管理系統(tǒng)\func.cpp
?????文件??????48640??2007-07-14?09:12??學(xué)生管理系統(tǒng)\Teaching?Management.opt
?????目錄??????????0??2007-07-09?14:15??學(xué)生管理系統(tǒng)\Debug
?????目錄??????????0??2007-07-09?14:15??學(xué)生管理系統(tǒng)
-----------?---------??----------?-----??----
??????????????5460840????????????????????18
- 上一篇:ATPDraw簡易教程
- 下一篇:義隆單片機(jī)程序燒寫軟件 UWriter
評(píng)論
共有 條評(píng)論