i am creating pointer object using new but except first object other are not taking input and control goes to end immediatelythis is the function
void library::cr