Y
yinglcs
Hi,
I have a class called 'A', and it has a method called 'Rect(int x, int
y, int w, int h)'
And I have another class called 'Rect'.
When I called 'Rect* in other method of A, I get this compiler error:
void A::aMethod() {
Rect* lastRect;
// ...
}
error: 'lastRect' was not declared in this scope
I think the compiler confuses the class Rect with the method Rect.
Can you please tell me if there is a work around for my problem? I
cant' rename the class Rect or the method 'Rect' in class A since they
are both legacy code.
Thank you for any idea.
I have a class called 'A', and it has a method called 'Rect(int x, int
y, int w, int h)'
And I have another class called 'Rect'.
When I called 'Rect* in other method of A, I get this compiler error:
void A::aMethod() {
Rect* lastRect;
// ...
}
error: 'lastRect' was not declared in this scope
I think the compiler confuses the class Rect with the method Rect.
Can you please tell me if there is a work around for my problem? I
cant' rename the class Rect or the method 'Rect' in class A since they
are both legacy code.
Thank you for any idea.