Studentmassage啥意思 Grade是什么意思

求大神C++源代码变exe【c语言吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:582,638贴子:
求大神C++源代码变exe收藏
# include &iostream&# include &fstream&# include &string.h&#include &conio.h&//用getch(); //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌Student类﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌class Student{public: char name[20]; char Id[20]; int C
//C课程得分 int M
//数学课程得分 int E
//英语课程得分
Student * N void Input() {
cout&&&\t\t请输入学生的姓名:&;
cout&&&\t\t请输入学生的学号:&;
cout&&&\t\t请输入C课程的成绩:&;
cout&&&\t\t请输入数学课程的成绩:&;
cout&&&\t\t请输入英语课程的成绩:&;
sum=Cnum+Mnum+E } void ReadFile(istream & in) {
in&&name&&Id&&Cnum&&Mnum&&Enum&& } void Show() {
cout&&&姓名:&&&name&&endl&&&学号:&&&Id&&endl&&&C++:&&&Cnum&&endl
&&&数学:&&&Mnum&&endl&&&外语:&&&Enum&&endl&&&总成绩:&&&sum&&endl&&endl&& }}; //﹌﹌﹌﹌﹌﹌﹌﹌﹌Studentmassage类﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌class Studentmassage{public: Studentmassage(); ~Studentmassage(); void ShowMenu(); void Find(); void Save(); void ModifyItem(); void RemoveItem(); void Swap(Student *,Student *); void Sort(); //void Unpass(); int ListCount(); //void Average(); void Display() {
for(Student * p=Head-&Np!=Ep=p-&Next)
p-&Show();
cout&&&输入任意字符!继续……&;
getch(); } void AddItem() {
End-&Input();
End-&Next=new S
End=End-&N
cout&&&添加成功!&&&
cout&&&输入任意字符!继续……&;
getch(); }private: Student * Head,* E Student *FindItem(char * name) {
for(Student * p=Hp-&Next!=Ep=p-&Next)//匹配成功则返回上一个指针,不成功就返回空
if(!strcmp(p-&Next-&name,name))
return NULL; } Student *FindID(char * Id) {
for(Student * p=Hp-&Next!=Ep=p-&Next)//匹配成功则返回上一个指针,不成功就返回空
if(!strcmp(p-&Next-&Id,Id))
return NULL; }}; //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌构造函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌Studentmassage::Studentmassage(){ Head=new S Head-&Next=new S End=Head-&N in.open(&sort.txt&); if(!in)
cout&&&这是一个新系统,无学生信息。请先输入。&&& else {
while(!in.eof())
End-&ReadFile(in);
if(End-&name[0]==*\0*)
End-&Next=new S
End=End-&N
in.close();
cout&&&\t\t读取学生信息成功!&&& }} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌析构函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌Studentmassage::~Studentmassage(){ Save(); for(Student *Head-&Next!=E) {
temp=Head-&N
Head-&Next=Head-&Next-&N } delete Head,E} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌菜单﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::ShowMenu()
cout&&&〓〓〓〓〓〓〓〓〓〓
学 生 成 绩 管 理 系
〓〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓★★★★★
★★★★★★★
★★★★★〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
1.增加学生成绩
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
2.显示学生成绩
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
3.排序统计成绩
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
4.查找学生成绩
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
5.删除学生成绩
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
6.修改学生信息
★〓〓〓〓〓〓〓〓〓&&&
cout&&&〓〓〓〓〓〓〓〓〓★
0.安全退出系统
★〓〓〓〓〓〓〓〓〓&&&
cout&&&\n\t\t\n\t\t请选择:&;} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌查找函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::Find(){ char name[20] ,Id[10]; Student * p=NULL; cout&&&\n\t\t*********************************\n&; cout&&&\t\t※ 1.按学生的姓名查找\n\t\t※ 2.按学生学号查找&; cout&&&\n\t\t*********************************\n请选择:&; cin&&x; switch(x) { case 1:{cout&&&\t\t请输入要查找的学生的姓名:&;cin&&
if(p=FindItem(name))
p-&Next-&Show();
cout&&&输入任意字符!继续……&;
cout&&&\t\t没有找到该姓名的学生!&&&*\n*&&
cout&&&输入任意字符!继续……&;
cout&&&\t\t请输入要查找的学生的学号:&;cin&&Id;
if(p=FindID(Id))
p-&Next-&Show();
cout&&&输入任意字符!继续……&;
cout&&&\t\t没有找到该学好的学生!&&&*\n*&&
cout&&&输入任意字符!继续……&;
} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌修改信息﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::ModifyItem()
//修改信息{ char name[20]; Student * p=NULL; cout&&&\t\t请输入要修改的人的姓名:&;cin&& if(p=FindItem(name)) {
cout&&&\t\t已找到学生的信息,请输入新的信息!&&&
p-&Next-&Input();
cout&&&修改成功!&&&
cout&&&输入任意字符!继续……&;
getch(); } else {
cout&&&\t\t没有找到!&&&
cout&&&输入任意字符!继续……&;
getch(); }} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌删除信息﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::RemoveItem()
// 删除信息{ char name[20]; Student * p=NULL,*temp=NULL; cout&&&\t\t请输入要删除的学生的姓名:&&&cin&& if(p=FindItem(name)) {
p-&Next=p-&Next-&N
cout&&&\t\t删除成功!&&&
cout&&&输入任意字符!继续……&;
getch(); } else {
cout&&&\t\t没有找到!&&&
cout&&&输入任意字符!继续……&;
getch(); }} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::Swap(Student *p1, Student *p2)//交换两个combox变量的数据域{ Student *temp=new S
strcpy(temp-&name,p1-&name); strcpy(temp-&Id,p1-&Id); temp-&Cnum=p1-&C temp-&Mnum=p1-&M temp-&Enum=p1-&E temp-&sum=p1-&
strcpy(p1-&name,p2-&name); strcpy(p1-&Id,p2-&Id); p1-&Cnum=p2-&C p1-&Mnum=p2-&M p1-&Enum=p2-&E p1-&sum=p2-&
strcpy(p2-&name,temp-&name); strcpy(p2-&Id,temp-&Id); p2-&Cnum=temp-&C p2-&Mnum=temp-&M p2-&Enum=temp-&E p2-&sum=temp-&} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌int Studentmassage::ListCount()//统计当前链表的记录总数,返回一个整数{ if(! Head)
return 0; int n=0; for(Student * p=Head-&Np!=Ep=p-&Next) {
n++; }} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::Sort()//对当前链表进行排序{
cout &&&Sorting...&&& Student *p=NULL,*p1=NULL,*k=NULL; int n=Studentmassage::ListCount(); if(n&2)
for(p=Head-&Np!=Ep=p-&Next)
for(k=p-&Nk!=Ek=k-&Next)
if(p-&sum&k-&sum)
Studentmassage::Swap(p,k);
} cout &&&排序完成!&&& getch();} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌保存函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌void Studentmassage::Save(){ out.open(&sort.txt&); for(Student *p=Head-&Np!=Ep=p-&Next)
out&&p-&name&&&\t&&&p-&Id&&&\t&&&p-&Cnum&&&\t&
&&p-&Mnum&&&\t&&&p-&Enum&&&\t&&&p-&sum&&*\n*; out.close();} //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌主函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌int main(){ int x,i=0; bool quit= cout&&&\t\t§§§§§§§§§§§§§§§§§§§§§§§§§§&&& for(i=0;i&3;i++)
cout&&&\t\t◎\t\t\t\t\t\t
◎&&& cout&&&\t\t◎★★★★【
欢迎进入学生成绩管理系统
】★★★★◎&&& for(i=0;i&3;i++)
cout&&&\t\t◎\t\t\t\t\t\t
◎&&& cout&&&\t\t§§§§§§§§§§§§§§§§§§§§§§§§§§\n&&&; Studentmassage G cout&&&按任意键开始……&;
getch(); while(!quit) {
system(&cls&);
Grade.ShowMenu();
case 0:quit=
case 1:Grade.AddItem();
case 2:Grade.Display();
case 3:Grade.Sort();
case 4:Grade.Find();
case 5:Grade.RemoveItem();
case 6:Grade.ModifyItem();
} } return 0;}}
可以选debug或者release版本。
先把错给改了...cpp.cpp:4:32: error: conio.h: No such file or directorycpp.cpp:102: error: stray ‘\’ in programcpp.cpp:161: error: stray ‘\’ in programcpp.cpp:177: error: stray ‘\’ in programcpp.cpp:297: error: stray ‘\’ in programcpp.cpp: In member function ‘void Studentmassage::Display()’:cpp.cpp:59: error: ‘getch’ was not declared in this scopecpp.cpp: In member function ‘void Studentmassage::AddItem()’:cpp.cpp:68: error: ‘getch’ was not declared in this scopecpp.cpp: In constructor ‘Studentmassage::Studentmassage()’:cpp.cpp:102: error: invalid type argument of ‘unary *’cpp.cpp:102: error: expected primary-expression before ‘)’ tokencpp.cpp: In member function ‘void Studentmassage::Find()’:cpp.cpp:157: error: ‘getch’ was not declared in this scopecpp.cpp:161: error: ‘n’ was not declared in this scopecpp.cpp:161: error: expected primary-expression before ‘&&’ tokencpp.cpp:163: error: ‘getch’ was not declared in this scopecpp.cpp:173: error: ‘getch’ was not declared in this scopecpp.cpp:177: error: ‘n’ was not declared in this scopecpp.cpp:177: error: expected primary-expression before ‘&&’ tokencpp.cpp:179: error: ‘getch’ was not declared in this scopecpp.cpp: In member function ‘void Studentmassage::ModifyItem()’:cpp.cpp:198: error: ‘getch’ was not declared in this scopecpp.cpp:204: error: ‘getch’ was not declared in this scopecpp.cpp: In member function ‘void Studentmassage::RemoveItem()’:cpp.cpp:221: error: ‘getch’ was not declared in this scopecpp.cpp:227: error: ‘getch’ was not declared in this scopecpp.cpp: In member function ‘void Studentmassage::Sort()’:cpp.cpp:287: error: ‘getch’ was not declared in this scopecpp.cpp: In member function ‘void Studentmassage::Save()’:cpp.cpp:297: error: ‘n’ was not declared in this scopecpp.cpp:297: error: expected primary-expression before ‘;’ tokencpp.cpp: In function ‘int main()’:cpp.cpp:315: error: ‘getch’ was not declared in this scopecpp.cpp: At global scope:cpp.cpp:334: error: expected declaration before ‘}’ token
c语言,博为峰IT培训免费试听,0元入学,现在更有多重优惠,仅限今天!博为峰,真正的为年轻人服务的企业,14年间培训15万余名it工程师,成绩斐然!
哈哈哈哈哈哈哈
登录百度帐号Our public clinic allows Georgian Massage Therapy students the opportunity to provide services while developing their skills at the appropriate level in their learning, under the supervision of Registered Massage Therapists.
Students also make referrals as necessary and practise all of the learned components and applications of the program, including the development of individualized treatment plans.
Georgian Health and Wellness clinics operate in partnership with each other. When you seek care at our clinic, your information will be stored on a common database and certain health information will be shared with the other professionals within the partnership.
If you have questions or concerns about what information will be shared, please contact us.
Public clinic appointments are available through May 8 to Aug. 17, 2018 (excluding all statutory holidays)
DaysTimesMondaysNo clinics availableTuesdays5 p.m. and 6:30 p.m.Wednesdays5 p.m. and 6:30 p.m.Thursdays1 p.m., 2:30 p.m ., 5 p.m. and 6:30 p.m.Fridays1 p.m., 2:30 p.m., 5 p.m. and 6:30 p.m.
One-hour appointments include assessment and treatment.
ClientCostGeorgian student (valid student ID required) $20Children 12 years of age and under $20Georgian staff and general public$30
Targeted clinics provide students with unique opportunities to develop specific skill sets. Entry into these clinics depend on recommendations and referrals made during a public clinic session. Scheduling varies throughout the academic year.
Space is limited!
Appointments can be booked by calling 705.722.1532. Cost is $10 per session.
Outreach clinicDaysTimesFibromyalgia, athritis and lupusTuesdays1 p.m. and 2:30 p.m.Complex careWednesdays9 a.m., 10:30 a.m., 1 p.m. and 2:30 p.m.InfantNot availableNot availableSports and PregnancyNot availableNot available
Learn more about the
programs at Georgian College.
Visit the .
For general inquiries or to book an appointment, please call 705.722.1532 or email . You may also
(up to two hours prior).
Please be advised the clinic requires 24 hours of notice in the event of a cancellation.
Located on the first floor of the Sadlon Centre for Health, Wellness and Sciences (M Building), at the Barrie Campus in Room M148.
Already visited the clinic?
Please provide us with feedback on your experience by clicking on the link below.
As a client, we ask that you support our clinic philosophy:
The main purpose of our clinic is to provide authentic learning experien therefore allowing them time to develop the clinical skills and professional behaviours required in their future roles as health care providers
Yes. All of the public clinics in the Sadlon Centre for Health, Wellness and Sciences are wheelchair accessible.
Yes. If it is your first appointment, please arrive 10 minutes early to complete a privacy consent form.
Yes. Gift certificates are available to purchase from one of the customer service representatives at the reception desk.
As this is a learning environment, w however, students are able to accept your written comments and feedback and we welcome referrals.
In accordance with health and safety standards, we ask that clients refrain from bringing food and drinks into the clinical space.
Students need time to develop their clinical skills. Missed appointments and last-minute cancellations affect the success of our students who are trying to meet their learning requirements. Therefore, we ask that you make the commitment of time and patience. We require 24 hours of notice for appointment cancellations. If you miss multiple appointments, we will remove you from our patient list.
We accept, debit, MasterCard, Visa and cash.
Yes. Students and staff are committed to ensuring the Massage Therapy Clinic a scent-free environment.
In accordance with privacy regulations, the use of any cell phone/electronic devices is prohibited in the clinic space.
Our students are not licensed Registered Massage Therapists (RMT), therefore in many circumstances our clients have been unsuccessful at having the cost reimbursed. We therefore recommend that you inquire directly with your insurance company.
Our main purpose of the teaching clinics is to provide authentic learning environments for our students. Therefore we do our best to respect gender preference requests. Any other requests may be beyond our control due to our academic priorities and commitments to our students.
The Massage Therapy Clinic has a number of Registered Massage Therapists working as instructors in our clinic. The instructors help to ensure that our students develop the clinical skills and professional behaviours required in their future careers through hands-on learning opportunities.志在山顶的人,不会贪念山腰的风景…
《C++编写 学生成绩管理系统》
/* (程序头部注释开始)
* 程序的版权和版本声明部分
* Copyright (c) 2011, 烟台大学计算机学院学生
* All rights reserved.
* 文件名称: 《C++编写 学生成绩管理系统》
* 作 者: 刘江波
* 完成日期: 2012 年 6 月 26 日
* 版 本 号: v.626
* 对任务及求解方法的描述部分
* 问题描述:
用C++编写一个学生成绩管理系统
1、可以实现以下功能:
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 1.增加学生成绩 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 2.显示学生成绩 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 3.排序统计成绩 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 4.查找学生成绩 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 5.删除学生成绩 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 6.修改学生信息 ☆ ★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★ ☆ 0.安全退出系统 ☆ ★〓〓〓〓〓〓〓〓〓"&&
2、用链表存储信息
* 程序头部的注释结束
# include &iostream&
# include &fstream&
# include &string.h&
#include &conio.h&//用getch();
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌Student类﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
class Student
char name[20];
char Id[20];
//C++课程得分
//汇编课程得分
//嵌入式操作系统课程得分
Student * N
void Input()
cout&&"\t\t请输入学生的姓名:";
cout&&"\t\t请输入学生的学号:";
cout&&"\t\t请输入C++课程的成绩:";
cout&&"\t\t请输入汇编课程的成绩:";
cout&&"\t\t请输入嵌入式操作系统课程的成绩:";
sum=Cnum+Mnum+E
void ReadFile(istream & in)
in&&name&&Id&&Cnum&&Mnum&&Enum&&
void Show()
cout&&"姓名:"&&name&&endl&&"学号:"&&Id&&endl&&"C++:"&&Cnum&&endl
&&"汇编:"&&Mnum&&endl&&"嵌入式操作系统:"&&Enum&&endl&&"总成绩:"&&sum&&endl&&endl&&
//﹌﹌﹌﹌﹌﹌﹌﹌﹌Studentmassage类﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
class Studentmassage
Studentmassage();
~Studentmassage();
void ShowMenu();
void Find();
void Save();
void ModifyItem();
void RemoveItem();
void Swap(Student *,Student *);
void Sort();
//void Unpass();
int ListCount();
//void Average();
void Display()
for(Student * p=Head-&Np!=Ep=p-&Next)
p-&Show();
cout&&"输入任意字符!继续……";
void AddItem()
End-&Input();
End-&Next=new S
End=End-&N
cout&&"添加成功!"&&
cout&&"输入任意字符!继续……";
Student * Head,* E
Student *FindItem(char * name)
for(Student * p=Hp-&Next!=Ep=p-&Next)//匹配成功则返回上一个指针,不成功就返回空
if(!strcmp(p-&Next-&name,name))
return NULL;
Student *FindID(char * Id)
for(Student * p=Hp-&Next!=Ep=p-&Next)//匹配成功则返回上一个指针,不成功就返回空
if(!strcmp(p-&Next-&Id,Id))
return NULL;
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌构造函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
Studentmassage::Studentmassage()
Head=new S
Head-&Next=new S
End=Head-&N
in.open("sort.txt");
cout&&"这是一个新系统,无学生信息。请先输入。"&&
while(!in.eof())
End-&ReadFile(in);
if(End-&name[0]=='\0')
End-&Next=new S
End=End-&N
in.close();
cout&&"\t\t读取学生信息成功!"&&
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌析构函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
Studentmassage::~Studentmassage()
for(Student *Head-&Next!=E)
temp=Head-&N
Head-&Next=Head-&Next-&N
delete Head,E
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌菜单﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::ShowMenu()
cout&&"********************************************************************************"&&
cout&&"〓〓〓〓〓〓〓〓〓〓
学 生 成 绩 管 理 系
〓〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓★★★★★
★★★★★★★
★★★★★〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
1.增加学生成绩
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
2.显示学生成绩
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
3.排序统计成绩
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
4.查找学生成绩
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
5.删除学生成绩
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
6.修改学生信息
★〓〓〓〓〓〓〓〓〓"&&
cout&&"〓〓〓〓〓〓〓〓〓★
0.安全退出系统
★〓〓〓〓〓〓〓〓〓"&&
cout&&"\n\t\t\n\t\t请选择:";
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌查找函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::Find()
char name[20] ,Id[10];
Student * p=NULL;
cout&&"\n\t\t*********************************\n";
cout&&"\t\t※ 1.按学生的姓名查找\n\t\t※ 2.按学生学号查找";
cout&&"\n\t\t*********************************\n请选择:";
case 1:{cout&&"\t\t请输入要查找的学生的姓名:";cin&&
if(p=FindItem(name))
p-&Next-&Show();
cout&&"输入任意字符!继续……";
cout&&"\t\t没有找到该姓名的学生!"&&'\n'&&
cout&&"输入任意字符!继续……";
cout&&"\t\t请输入要查找的学生的学号:";cin&&Id;
if(p=FindID(Id))
p-&Next-&Show();
cout&&"输入任意字符!继续……";
cout&&"\t\t没有找到该学好的学生!"&&'\n'&&
cout&&"输入任意字符!继续……";
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌修改信息﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::ModifyItem()
//修改信息
char name[20];
Student * p=NULL;
cout&&"\t\t请输入要修改的人的姓名:";cin&&
if(p=FindItem(name))
cout&&"\t\t已找到学生的信息,请输入新的信息!"&&
p-&Next-&Input();
cout&&"修改成功!"&&
cout&&"输入任意字符!继续……";
cout&&"\t\t没有找到!"&&
cout&&"输入任意字符!继续……";
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌删除信息﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::RemoveItem()
// 删除信息
char name[20];
Student * p=NULL,*temp=NULL;
cout&&"\t\t请输入要删除的学生的姓名:"&&cin&&
if(p=FindItem(name))
p-&Next=p-&Next-&N
cout&&"\t\t删除成功!"&&
cout&&"输入任意字符!继续……";
cout&&"\t\t没有找到!"&&
cout&&"输入任意字符!继续……";
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::Swap(Student *p1, Student *p2)//交换两个combox变量的数据域
Student *temp=new S
strcpy(temp-&name,p1-&name);
strcpy(temp-&Id,p1-&Id);
temp-&Cnum=p1-&C
temp-&Mnum=p1-&M
temp-&Enum=p1-&E
temp-&sum=p1-&
strcpy(p1-&name,p2-&name);
strcpy(p1-&Id,p2-&Id);
p1-&Cnum=p2-&C
p1-&Mnum=p2-&M
p1-&Enum=p2-&E
p1-&sum=p2-&
strcpy(p2-&name,temp-&name);
strcpy(p2-&Id,temp-&Id);
p2-&Cnum=temp-&C
p2-&Mnum=temp-&M
p2-&Enum=temp-&E
p2-&sum=temp-&
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
int Studentmassage::ListCount()//统计当前链表的记录总数,返回一个整数
if(! Head)
for(Student * p=Head-&Np!=Ep=p-&Next)
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::Sort()//对当前链表进行排序
cout &&"Sorting..."&&
Student *p=NULL,*p1=NULL,*k=NULL;
int n=Studentmassage::ListCount();
for(p=Head-&Np!=Ep=p-&Next)
for(k=p-&Nk!=Ek=k-&Next)
if(p-&sum&k-&sum)
Studentmassage::Swap(p,k);
cout &&"排序完成!"&&
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌保存函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
void Studentmassage::Save()
out.open("sort.txt");
for(Student *p=Head-&Np!=Ep=p-&Next)
out&&p-&name&&"\t"&&p-&Id&&"\t"&&p-&Cnum&&"\t"
&&p-&Mnum&&"\t"&&p-&Enum&&"\t"&&p-&sum&&'\n';
out.close();
//﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌主函数﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌
int main()
int x,i=0;
bool quit=
cout&&"\t\t§§§§§§§§§§§§§§§§§§§§§§§§§§"&&
for(i=0;i&3;i++)
cout&&"\t\t◎\t\t\t\t\t\t
cout&&"\t\t◎★★★★【
欢迎进入学生成绩管理系统
】★★★★◎"&&
for(i=0;i&3;i++)
cout&&"\t\t◎\t\t\t\t\t\t
cout&&"\t\t§§§§§§§§§§§§§§§§§§§§§§§§§§\n"&&;
Studentmassage G
cout&&"按任意键开始……";
while(!quit)
system("cls");
Grade.ShowMenu();
case 0:quit=
case 1:Grade.AddItem();
case 2:Grade.Display();
case 3:Grade.Sort();
case 4:Grade.Find();
case 5:Grade.RemoveItem();
case 6:Grade.ModifyItem();
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!

我要回帖

更多关于 massage意思 的文章

 

随机推荐