   Accessing a Variable from in a class??
  Hi I have a global variable in my main.cpp that I want to access in one of my classes. How is this done? I can''t include main.cpp as a header can I?  
  Try doing this...Have a Global.h and Global.cppIn the Global.h have...extern int MyInt;In Global.cppint MyInt = 5;If you want that var now...#include "Global.h"Happy Coding. ;  Thanks 