Hey there!
I have this program, where I have a class, and inside the class there is a function named Function1...Function1 has an argument that should be subtracted from a variable that is not in its class or argument...So let's say it's like this:
How would I do this?Code:int GlobalVariable1; int main() { class Class1 { void Function1(int Argument1); }; void Class1::Function1(int Argument1) { /* I want the Argument1 in Class1 to be subtracted from the GlobalVariable1, which is not in the class. The code would be here! */ } }



LinkBack URL
About LinkBacks


