H
Hisham
hey all i have problem here
suppose i made class base and i derived drv that has function set data
in the base class
when i want to have array of pointers for both of them
base* ba[10];
drv* dr[10];
then i want to do this
for(int i=0;i<10;i++)
*(ba+i)=new base;
for(i=0;i<10;i++)
*(dr+i)=new drv //it will compile but in excuting the program it say
unhandled exception and terminate the program
can someone tell me why ?
suppose i made class base and i derived drv that has function set data
in the base class
when i want to have array of pointers for both of them
base* ba[10];
drv* dr[10];
then i want to do this
for(int i=0;i<10;i++)
*(ba+i)=new base;
for(i=0;i<10;i++)
*(dr+i)=new drv //it will compile but in excuting the program it say
unhandled exception and terminate the program
can someone tell me why ?