Hi,
Warning: This is most likely a very silly question.
I have an object that resides in its own header file and is created in main, I would like to update the said object using a function that is declared in a separate file. If I'm not clear please let me know and I will try and explain my self better.
//main
#include"Object.h"
int main(){
Object obj;
}
Assume that the above is the main, and obj is created.
//functions file which is separate from both the main and object.h
void updateObj(int someNum){
//how can I do this??
obj.callingObject(someNum);
}
Thank You