DonjonMaister@programming.dev to Programmer Humor@lemmy.ml · 2 years agoThe difference between an instance variable and a static variable.programming.devimagemessage-square10linkfedilinkarrow-up134arrow-down10file-textcross-posted to: programmer_humor@programming.dev
arrow-up134arrow-down1imageThe difference between an instance variable and a static variable.programming.devDonjonMaister@programming.dev to Programmer Humor@lemmy.ml · 2 years agomessage-square10linkfedilinkfile-textcross-posted to: programmer_humor@programming.dev
minus-squarethebestaquaman@lemmy.worldlinkfedilinkarrow-up1·2 years agopersonally I prefer including the file prog_constants.h int program_state; // Keeps track of stuff in all translation units. That way I can easily keep track of what different parts of the program are doing at any time by modifying a single variable.
personally I prefer including the file
prog_constants.hint program_state; // Keeps track of stuffin all translation units. That way I can easily keep track of what different parts of the program are doing at any time by modifying a single variable.