Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.
Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
So learn about std::vector, iterators and generic algorithms?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
>Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.
Are you out of your mind? Arrays, pointers and const are big reasons why C++ is sexy.
My best code is written with the delete key.
hmm... probably because it hurts the first time. But I guess you mean because they look cool
Good thing though is I'm moving on. Finished these chapters on pointers, arrays and c-style strings. I guess I'm a programmer now
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
>But I guess you mean because they look cool
Not really, I mean that they give you a surprising amount of low level power for a supposedly high level language.
>I guess I'm a programmer now
My best code is written with the delete key.
Real programmers probably work, write books, and post on newsgroups or anonymous boards. English wins as the world's most painful subject, however.
The sexiest code ever.
Code:char* s ; printf( "%s", s );
Last edited by Dante Shamest; 06-04-2006 at 02:38 PM.
That's when C++ stops looking sexy. LOL. All we are we want is C with classesSo learn about std::vector, iterators and generic algorithms?
silk.odyssey
Code:++i -= (i-- += --i) + (i++ - ++i) - i; // <-- this is cool C++
Last edited by joeprogrammer; 06-06-2006 at 09:34 AM.
I just love the curves on those references.
And that vector can't be real...I can't wait to push onto the back of it.
Actually Doesn't Cobol Win As It Is Typed In All Caps As It Is Cruise Control For Cool??
Code:--_ -= (_-- -= --_) - (_-- - --_) - _; // <-- this is even cooler C++/Morse code
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Except that both "cool" C++ pieces yield undefined results.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Nah, we'll just rewrite the Standard. hmm... or maybe _ is an object of some class type where all the overloaded operators are no-ops.Except that both "cool" C++ pieces yield undefined results.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
const alone makes it the sexiest language alive.Arrays, pointers and const are big reasons why C++ is sexy
Writing C# code at the moment I would soooo kill for a single preprocessor macro. It's unbelivable that a programming language has no way to automate code generation. Ever typed code out for 73 Accessor/Properties encapsulating 73 private variables ? Did I mention I need a preprocessor ? Badly ? Like RIGHT NOW ?
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.