RE: [Dev-C++] what is wrong with the code
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@em...> - 2003-08-19 04:40:42
|
I have not studied std::string/std::basic_string thoroughly yet but I
checked TC++PL a bit.
// Constructor
string s=3D'a'; is not valid.
However,=20
string s;
s=3D'a';=20
IS valid.
Also string::assign can be used in the way Haeri told me in a private =
email.
Also s.push_back('a'); can be used.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|