Doubt regarding C++ code in old textbooks

Discussion in 'C++' started by thefeedinghand, Aug 31, 2010.

  1. thefeedinghand

    thefeedinghand New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have this Practical C++ Programming book, and i think its from 1997, and there's a few code changes that won't compile in most compilers:

    First of all, the headers still have the .h extension like #include

    Namespaces are nonexistent as well as the C++ strings (I'm guessing these were added recently?) so cout and cin are usesd without the std::

    Other minor details too..

    BTW I find the C++ file I/O system very confusing compared to the simple C one..
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice