gbowne1 / gradebook-management-system

This is a C++ Gradebook Management System
MIT License
2 stars 2 forks source link

Query feature and code normalization #10

Closed andrewlod closed 8 months ago

andrewlod commented 8 months ago

Hello, I am back!

I have thought about some features to add to the GradeBook, since the current goals are a bit far away (it requires a lot of base before adding more complex things such as authentication, server, permissions, etc.) and I added a nice querying feature, where you can do the following:

Since we do not have any testing framework yet, I have added those test cases to the main program, where you can choose them as options (option 1000 onwards, they are marked as [TEST]). Feel free to test them with the CSV data in assets/. Just make sure to load the required data before querying:

This feature will be useful when we have a server interface, where there will be a constant need for querying the data and sending it to the users.

I am also using exceptions as error handling. Let me know if that is a problem for you, some code styles do not like the C++ exception handling such as the Google C++ Style Guide.

VSCode also forced me to follow a code style (brackets on the next line) so I applied that style to all CPP/H files.