my first time

This is a discussion on my first time within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy....

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,383

    my first time

    Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,976
    So learn about std::vector, iterators and generic algorithms?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,383
    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
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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.

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.

  6. #6
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,529
    Real programmers probably work, write books, and post on newsgroups or anonymous boards. English wins as the world's most painful subject, however.

  7. #7
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    The sexiest code ever.

    Code:
    char* s ;
    printf( "%s", s );
    Last edited by Dante Shamest; 06-04-2006 at 02:38 PM.

  8. #8
    Registered User
    Join Date
    Dec 2003
    Posts
    167
    So learn about std::vector, iterators and generic algorithms?
    That's when C++ stops looking sexy. LOL. All we are we want is C with classes
    silk.odyssey

  9. #9
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Code:
    ++i -= (i-- += --i) + (i++ - ++i) - i; // <-- this is cool C++
    Last edited by joeprogrammer; 06-06-2006 at 09:34 AM.

  10. #10
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    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.

  11. #11
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,529
    Actually Doesn't Cobol Win As It Is Typed In All Caps As It Is Cruise Control For Cool??

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,976
    Code:
    --_ -= (_-- -= --_) - (_-- - --_) - _; // <-- this is even cooler C++/Morse code
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #13
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    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

  14. #14
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,976
    Except that both "cool" C++ pieces yield undefined results.
    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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #15
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    Arrays, pointers and const are big reasons why C++ is sexy
    const alone makes it the sexiest language alive.

    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.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get current time
    By tsubasa in forum C Programming
    Replies: 3
    Last Post: 05-01-2009, 02:03 AM
  2. Replies: 11
    Last Post: 03-29-2009, 12:27 PM
  3. Help with assignment!
    By RVDFan85 in forum C++ Programming
    Replies: 12
    Last Post: 12-02-2006, 11:46 PM
  4. calculating user time and time elapsed
    By Neildadon in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2003, 05:00 PM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 09:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21