On 13/11/2007, ganesh subramonian <[EMAIL PROTECTED]> wrote:
>
> Can someone tell me why the cast2 fails but cast1
> works? What effect does the cstyle cast have?
It makes the program incorrect.
This mailing list is for discussion of GCC development, for help using
GCC use the gcc-help list. For
I have this example program below.
#include
#include
using namespace std;
class Base {
public:
Base() {}
Base(int aa) {
a = aa;
}
int a;
char c;
virtual void show() {
cout << "a=" << a << endl;
}
};
class Derived: