Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
64 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include "database.h" | ||
using namespace std; | ||
int main(){ | ||
|
||
int Lect_id,stu_id; | ||
string Lect_name,name,class1,b; | ||
cout<< "enter lecturer name"<<endl; | ||
cin>>Lect_name; | ||
Lect_id: cout<< "enter lecturer id"<<endl; | ||
Lect_id=0; | ||
cin>>Lect_id; | ||
if (Lect_id>9999999){ | ||
|
||
cout<<"Enter valid Lecturer ID"<<endl; | ||
goto Lect_id; | ||
} | ||
else{ | ||
cout<<"Lecturer ID accepted"<<endl; | ||
UploadLecturer(Lect_id, Lect_name); | ||
} | ||
|
||
lect:cout<<"Do you want have a look at the lecturers' list? (y/n)"<<endl; | ||
cin>>b; | ||
if (b=="y" || b== "Y"){ | ||
printLecturers(); | ||
|
||
} | ||
else if (b=="n" || b=="N"){ | ||
|
||
cout<< "okay"<<endl; | ||
cout<< "enter student name"<<endl; | ||
cin>>name; | ||
cout<< "enter student id"<<endl; | ||
cin>>stu_id; | ||
cout<< "enter class code"<<endl; | ||
cin>> class1; | ||
UploadStudent(stu_id, name, class1); | ||
printStudents(); | ||
} | ||
else{ | ||
cout<< "enter a valid input"<<endl; | ||
goto lect; | ||
|
||
} | ||
return 1; | ||
|
||
|
||
// I tried writing in more code, but it isnt working perfectly | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BIN
+0 Bytes
(100%)
uni_info.db
Binary file not shown.