Thread
:
Memory management
View Single Post
01-19-2004, 08:09 AM
#
8
KaVir
Legend
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
Yes, in C++ you need to cast - although in C++ you should really be using 'new' instead of 'malloc'. You might also want to try looking at std::string as an alternative to char*.
KaVir
View Public Profile
Visit KaVir's homepage!
Find More Posts by KaVir