how do I create and use a global class? I have only created global variables, never a class; I tried to use the same formate but came across errors.
what I tried to do was declare the class at the top of my driver file:
class MyGlobalClass gClass; // IS THIS HOW I DECLARE A GLOBAL CLASS
... // normal stuff
...// normal stuff
dc.start(); // this is where I will put values in the global class
...blah blah blah
(some other file who wants to access the global class)
extern class MyGlobalClass gClass; // IS THIS HOW I GET ACCESS TO THE GLOBAL CLASS?
temp = gClass.data; // THIS IS WHAT GIVES ME AN ERROR