GitXplorerGitXplorer
x

university-cpp-project

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
7c29f5beb090a373ba3e0045012b1eda6a455cef

deleted build folder because user will create it anyways

xxmfcx committed 7 years ago
Unverified
ee3a04b32193fdb93751133d3e2486d0c2f9b036

Update README.md

xxmfcx committed 7 years ago
Unverified
97d02a361155204b779c600338ed30d30360ed6c

Update Software Design Document.md

xxmfcx committed 7 years ago
Unverified
7f0a72acee43d2bbcd876d0aba2e20704c6e7edb

small tweaks here&there

xxmfcx committed 7 years ago
Unverified
72e14b8cdaa0831522519b6100fa606ec537db83

Merge remote-tracking branch 'origin/master'

xxmfcx committed 7 years ago
Unverified
ac2ae604a485b673391238d233e918bc2bc41389

Update Software Design Document.md

xxmfcx committed 7 years ago

README

The README file for this repository.

university-cpp-project

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

Build

Requirements

  • gnu c++ compiler

  • cmake 3.5 (minimum)

Build Instructions

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.

building

Run

cd .../university-cpp-project/
cd build
sudo chmod +x university
(enter your password)
./university

Application must have started now!

running

How to Use

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.

Add a student

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:

add student

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)

add student

Also when you add a student, program automatically creates a [StudentID].bin file

add student

Display a student

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.

display student

Update a student

Here you can see me update a student to remove some courses from him.

update student

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.

Remove a student

Removing a student is a very similar experience to what we have seen so far and it is easy.

remove student

And note that his ID.bin is removed aswell from build dir. And only second student left there.

remove student

Exit the program

Just press e on main screen, that's all.

Reopening the program

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

reopen program