Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   C++ to C: Strings (http://www.go4expert.com/forums/cpp-c-strings-t687/)

bconnor 4Apr2006 16:55

C++ to C: Strings

string s = "we";
string s2 = "I";
s.replace( 0, s2.length(), s2 );
cout << s << endl;

There isnt a simple way to do something like this in C, is there?

coderzone 4Apr2006 19:18

Re: C++ to C: Strings
What do you mean by C. Do you mean with the char array?

All times are GMT +5.5. The time now is 09:10.