Hi guys I thought I did everything right here when passing an object as parameters but for some reason I'm getting an error on line 21 saying 'passObject' was not declared in this scope,anyone know where I went wrong?
The compiler starts at the top and goes down. When it gets to line 20, it has never heard of the function passObject. You need to have the function definition or declaration before you try to use the function.
Thanks JL,thats really new to me and kind of shocked me because I did not know classes had to be declared,all this time I've been using c++ and I thought functions where the only things that had to be declared,I'm pretty sure I've got away with it in the past that's why it confuses me so much