What to do after Python?
aleaxit at yahoo.com
Wed Feb 21 00:20:10 CET 2001
"Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> wrote in message
news:slrn995hjv.p74.qrczak at qrnik.zagroda...
> Sun, 18 Feb 2001 15:49:51 -0800, Erik Max Francis <max at alcyone.com> pisze:
> > If one is actually writing Standard C++, one doesn't need the
> > str... C functions, since one won't be using NUL-terminated C
> > strings, but rather std::string.
> Unless he wants to open a file with a given name, or get command
> line arguments. Not to mention string literals.
These tasks will use C-strings, but Erik's assertions about not
needing "the str... C functions" remains true -- one just builds a
std::string out of every C-string one happens to meet, and, when
a C-string is needed (e.g., in a std::fstream constructor as the
name argument), the .c_str() method of the std::string object
supplies it. No functionality at all needs strwhatever()...
More information about the Python-list