This is the term project for following thing: https://github.com/xmfcx/university-cpp-project/blob/master/doc/Project.pdf
Demonstration Video: https://www.youtube.com/watch?v=DBtH0VLe93s
-
gnu c++ compiler
-
cmake 3.5 (minimum)
To build the application, follow these steps:
cd .../university-cpp-project/
mkdir build
cd build
cmake ..
make -j4
That's it, you now should have the university executable file in your build directory.
cd .../university-cpp-project/
cd build
sudo chmod +x university
(enter your password)
./university
Application must have started now!
Actually, everything should be clear just from the Command Line Interface but let's add a Student to this university together.
I will give you the instruction list to perform basic operations.
a (Add Student)
2 (Faculty of Electrical & Electronics)
4 (Department of Control and Automation Engineering)
Studento Nameo (Student Name)
1 (Male)
20 (Age)
1234567890 (Phone)
studento@smail.com (Email)
Until this step you should have something like this:
And it is now asking you to select courses. It will also give you random grades once you chose courses.
When you are done adding courses you can enter 0
and it will create the student for you and generate you an ID.
1 (A course)
4 (A course)
5 (A course)
23 (A course)
0 (Cancel)
Also when you add a student, program automatically creates a [StudentID].bin file
I have also added a 2nd student myself and here will show how to display info about students that are registered.
Simply when you are in main screen, press d
and follow instructions.
Here you can see me update a student to remove some courses from him.
So, you can edit anything you want, add more courses, remove some etc. and you can press 0
again to cancel as it is in options and edit another student if you like. Or just press 0
again to cancel and go back to main screen.
Removing a student is a very similar experience to what we have seen so far and it is easy.
And note that his ID.bin is removed aswell from build dir. And only second student left there.
Just press e
on main screen, that's all.
If you have saved students previously, (you have ID.bin files in build directory) program will automatically load them for you and you can just keep adding or removing students :D