i have a serious problem with this malloc function used in C language.i have been studying the topic "new" for few days,and there i found a code in which malloc was used.i am trying to change it to new but my compiler always always CRASHES.
the line which i think crashes my compiler is:-
r->next=(class polynomial *)malloc(sizeof(class polynomial))
if somebody wants the program which put me in trouble,please do ask for it.
please please help me im in a big trouble.