舜發於畎畝之中,傅說舉於版築之間,膠鬲舉於魚鹽之中,管夷吾舉於士,孫叔敖舉於海,百里奚舉於市。故天將降大任於是人也,必先苦其心志,勞其筋骨,餓其體膚,空乏其身,行拂亂其所為,所以動心忍性,曾益其所不能。
下面是一段c++的學生管理系統原始碼,可直接執行在軟體上。
執行效果圖如下:#include
#define n 20
using
namespace std;
struct student
;struct student xx[n]
;void
main()
break
;case2:
//查詢學生資訊
int searchn;
cout<<
"請輸入要查詢的學號:"
; cin>>searchn;
for(i=
0;iif(searchn==n)
cout<<
"沒有找到"
;break
;case3:
//修改學生資訊
int mod;
cout<<
"請輸入要修改的學號:"
<
cin>>mod;
for(i=
0;i)else
cout<<
"沒有找到:"
<
}break
;case4:
//刪除學生資訊
int delm;
cout<<
"請輸入要刪除的學號:"
<
cin>>delm;
for(i=
0;i) cout<<
"已成功刪除該學生資訊."
<
break;}
if(delm!=xx[i]
.number)
cout<<
"沒有該學生資訊."
<
break;}
break
;case5:
//增加學生資訊
for(i=
0;i)break
;case6:
//按學號小到大排序
struct student t;
for(i=
1;i)for
(int j=
0;jfor(i=
0;i)break
;case7:
//對學生資訊分頁列表
for(i=
0;icout<<
"學號:"
<
.number;
cout<<
"\t年齡:"
<
.age;
cout<<
"\t成績:"
<
.score;
cout<<
"\t性別:"
<
.***;
cout<<
"\t姓名:"
<
.name<
}
cout<<
"按數字'1'翻到下頁,按數字'2'退出"
;int x;
cin>>x;
if(x==1)
continue;if
(x==2)
break;if
(x!=
1&&x!=2)
cout<<
"輸入錯誤"
<
break;}
case0:
//退出
break;}
}else
}}
學生管理系統(簡易)(附原始碼)
1.介面 2.資料結構的設計 需求和資料結構設計糅合在一起 3.互動 include mylist.h void menu 資料的設計 學生資訊抽象出來,選單設計 struct node list void keydown 使用者的互動 根據所選選單項,執行問題 intmain int argc,c...
C語言入門 學生資訊管理系統原始碼
學習c語言的一些疑問 一 結構體的使用 struct student define n 100 struct student stu n 將結構體student名字改為stu,且為結構體陣列 結構體應用 stu i age 結構體陣列例項 結構體陣列 計算乙個班學生四門課程平均分 include t...
管理系統的原始碼
基本思路如下 1.成員基類person,學生類students與教師類teacher繼承person 2.操作基類operationpage,新增 刪除 修改 查詢類 繼承自operationpage 3.主函式裡初始化資料庫資訊,例項化loginpage類,loginpage選擇登入教師還是學生,...