Sunday, April 3, 2011

string cannot be allocated by "malloc"

string cannot be allocated by "malloc".the only way to allocate memory for string is to "new" one.

string test=new string;

No comments:

Post a Comment