i need to declare a class in a section in my program which would give it 'block scope' ? basically i declare it in an IF statement. later further down the function (outside of the block) when i try to access it, i get an error saying "'xxxx' : undeclared identifier".
Image *iImage = new Image(iImageWidth, iImageHeight);
...to declare the instance of the class, then:
...to try and use it. i also get a 'left of '.Print' must have class/struct/union' error as well. im pretty sure i have the whole variable scope understanding down, but this has me scratching my head.
appreciate any help :)