7/5 Does MFC/STL provide functions for quick extractions of word/line
counts of a textfile?
\_ in STL, open the file using a stream iterator. then use
std::count() in <algorithm>. two lines of code. -ali
\_ C++ is an evil tool of Satan.
\_ uh huh. and i suppose you're either a C purist or
one of those "Pee-Ell" people who like ML. Well,
\_ Learn ML before spewing idiocy.
when /usr/src starts shipping with ML stuff in it, i suppose
you'll be right. Until then, you're a motd-wanker!
(apologies if you are a C purist, but eventually you will
be phased out along with fortran).
\_ This will take another 10 to 20 years, by which time
I will be retired. - not the original poster but still
\_ and you're a stupid unoriginal troll. -ali
not a fan of c++
\_ and you're a stupid unoriginal troll. learn to code
c++ before before you spew idiocy. -ali
\_ Ocaml and SML are faster than C++:
http://www.bagley.org/~doug/shootout
\_ those tests are seriously flawed
\_ Show me one test where C++ beats Ocaml.
\_ Tell me about it, java beats C++.
Only if you run java on a E10K and
C++ on a M68K
\ Is C++ really that much better than C? I mainly
\_ I compare it to the English language: Difficult
bullshit, language learning curve _/
depends entirely on your first language and
others you may know.
\_ I know C well. C++'s virtual stuff,
STL extensions, and iostream.h classes
are hard to memorize. I don't mean to
argue ...
it's not really that important, anyway.
I mean, really, do you think I want
to waste more time on C vs. C++ wars?
to learn, but very useful if mastered - relative
to other languages.
write network servers/clients, utility daemons
and such and C seems to serve me well. I'd consider
switching to C++ if I could figure out how it
would make my life eaiser. URL okay. - NTOP (not
the original poster)
\_ Bjarne Stroustrup musings:
http://freespace.virgin.net/s.hector/jokes/stroustrup.htm |