|
From: Jason H. <jas...@bt...> - 2002-03-10 14:21:55
|
A quick note. The C++ equivalent of sscanf and sprintf is the 'stringstream' class and it's related classes (istringstream, and ostringstream). Note that 'stringstream' is the current standard name, but previously it was known as 'strstream'. Once you have created the buffer you can operate on it in much the same way as with cout and cin (using << and >>). It's header is <sstream> (I think?). Jason. ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Sent: Saturday, March 09, 2002 3:31 PM Subject: RE: [Dev-C++] palindrome base prgm I am still studying C++ so i do not know if it provides some else string to number facility, i so for the conversion i should suggest sscanf() on string::c_str(). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |