print · source · login   



VirtualBox image for the assignment
Deadline October 1.


Compiler warnings

Turning on compiler warnings may help with keeping your code clean. To do this in Qt Creator, switch to the "Projects" pane through the menu on the left-hand side. In the CMake section you should see a bunch of settings like CMAKE_BUILD_TYPE. Check the 'advanced' checkbox on the right and look up CMAKE_CXX_FLAGS. Put the value as -Wall (case sensitive). Then click build in the lower left corner. This will trigger some issues about signed and unsigned integer comparisons, which should be easily solvable by changing the relevant variables to have type unsigned int (or size_t) instead of int.