-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
55 lines (55 loc) · 1.58 KB
/
main.cpp
File metadata and controls
55 lines (55 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include"ListCTKH.cpp"
int main()
{
int choose=-1;
bool dungmain=false;
ListCTKH<CongTrinhKhoaHoc> list("nguyen quy trieu");
while(dungmain==false)
{
cout<<endl;
cout<<"CHUONG TRINH QUAN LI CONG TRINH KHOA HOC\n";
cout<<"****************************************\n";
cout<<"** 1.Them cong trinh khoa ho **\n";
cout<<"** 2.Sua tai vi tri. **\n";
cout<<"** 3.Xoa cong trinh khoa hoc. **\n";
cout<<"** 4.Hien thi danh sach CTKH. **\n";
cout<<"** 5.Tim kiem theo ma cong trinh. **\n";
cout<<"** 6.Sap xep danh sach CTKH. **\n";
cout<<"** 0.Thoat. **\n";
cout<<"****************************************\n";
while(cout<<"nhap lua chon: " && !(cin>>choose))
{
cin.clear();
cin.ignore();
cout<<"dau vao khong hop le!";
}
cout<<"\n\n";
switch (choose)
{
case 1:
list.Input();
break;
case 2:
list.Update();
break;
case 3:
list.Remove();
break;
case 4:
list.ShowList();
break;
case 5:
list.Find();
break;
case 0:
cout<<"Ban da thoat chuong trinh!";
cout<<"Hen gap lai!";
dungmain= true;
break;
default:
cout<<"Dau vao khong hop le hay nhap lai!";
break;
}
}
return 0;
}