Use the STL replace:
My C++ is a little rusty.Code:char[] str = "i like vb"; replace( str, str+strlen(str), ' ', '' ); cout << str;![]()
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |