i have been working on a certain program the other day when i noticed a wierd problem: strlen doesnt work with new, so
outputs 3 -- 3.Code:char * b; char * c; b = newchar (12); c = newchar (12); cout<<strlen(c)<<" -- "<<strlen(b)<<endl; cout<<strlen(c)<<" -- "<<strlen(b)<<endl;
i don't want to use strings, but i would like to know if there is a way to avoid this and make strlen work as expected.



LinkBack URL
About LinkBacks


