Organizing Projects Using Files and Namespaces

  • Bruce Sutherland


In Chapter 6 we ended with a file that contains functions and structures that were related to completely different high-level concepts. Some were there to control the game loop, others to obtain user input and write output, and a structure to represent the player model. Eventually this code would become difficult to manage and work with if we were to continue down this path of adding everything to a single file.



Copyright information

© Bruce Sutherland 2014

Authors and Affiliations

  • Bruce Sutherland
    • 1
  1. 1.VICAustralia

Personalised recommendations