Perhaps extern would help.
Or you could make your functions take a myClass object by reference, and then just pass the appropriate instance when you call the function. That global instance might not be the best design choice.
Perhaps extern would help.
Or you could make your functions take a myClass object by reference, and then just pass the appropriate instance when you call the function. That global instance might not be the best design choice.