well, I think that wasnt hard to understand and it is the most known syntax for memory allocation in C++, so he should get used to that one.
i have never used your syntax thb. and i tried that one just out of curiosity and it gives me a memory error "just after program exit" if you use strings instead of char*. so he needs to use C-style strings and all that stuff which is really not easy for a beginner.
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Last edited by noobie; 11-09-2006 at 05:10 PM.
|