I have a variable that I would like to use in all my classes without needing to pass it to the class constructor every time I would like to use it. How would I accomplish th
Declare the variable as extern in a common header.
extern
Define it in any source file.