Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Anyone else feel scammed by learning C++98 ?

  1. Oct 25, 2014 #1
    I spent countless hours learning about and writing things like std::string::const_iterator. Now there's stuff like auto, for-each loops, etc. What a scam! I still have my C++ Primer book from 5 years ago. It cost me like $200 and what it taught me was uselessly complex.
     
  2. jcsd
  3. Oct 25, 2014 #2
    If you don't want to do things in an unnecessarily complex way, then why did you learn C++ in the first place? There are a lot of less complex languages out there.
     
  4. Oct 25, 2014 #3

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    And there are few programming books which are worth a fraction of $200.00.
     
  5. Oct 26, 2014 #4

    Mark44

    Staff: Mentor

    I don't see how it's a scam. Programming languages change over time as a result of requests made to the committees who oversee them. The changes you (Jamin) list are peanuts in comparison to the changes made between Fortran IV and the newest variants of Fortran.

    With regard to C, there are quite a few changes between C as described in K & R 1st edition and ANSI C of just a few years later. One area that is notable is the difference in how function parameters are declared. Here's an example of the older style.
    Code (C):

    fun (arg1, arg2)
    int arg1, arg2;
    {
       /* body of fun */
       ...
    }
     
  6. Oct 26, 2014 #5

    FactChecker

    User Avatar
    Science Advisor
    Gold Member

    Depending on what you work on, there is a lot of use for basic C++ and even C. The newer stuff is great when it works, terrible when it doesn't work, and irrelevant on hardware or projects that don't have or don't allow those compilers.
     
  7. Oct 30, 2014 #6
    It depends on what you want to do with your knowledge and goals. The more you learn, the easier it will be to code in other languages and on other platforms.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook