Learning C++ via a C book?

This is a discussion on Learning C++ via a C book? within the C++ Programming forums, part of the General Programming Boards category; Hi all, The past weeks I have been learning C++ and started a program. I want to read books now, ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    22

    Learning C++ via a C book?

    Hi all,

    The past weeks I have been learning C++ and started a program. I want to read books now, so the last weeks I have gone many times to the library to find books, but everytime all the books are out So today I found a book of C and rented it, can I use it you think? Are there major differences compared to C++, or can I use this book as the base?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    C++ is largely a superset of C. Most of the language constructs are the same. If you are learning C++, the book is not ideal, but will probably not do any harm.

    There are some who would disagree with that statement, I/O for example is quite different between the two, however, you can use C style I/O in a C++ program, it would be argued, that you will pick up bad habits from this book.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    22
    Yeah, there are a lot of good and bad things to it... I've read the book and it was nothing really new, so I'll start looking for a C++ book again

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    search at google for Bruce Eckels excellent book "Thinking in c++". It is available as a 2 volume free e-book and if you already understand the C in C++ then this will help you more with the ++ side of things.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    Unregistered
    Guest
    If you don't feel comfortable with C then a slightly out of date (still use the .h extension for including header files, and doesn't use namespaces routinely) version of Liberty's Teach Yourself C++ in 21 days is also available on line. Here's one site:

    http://www.stud.fim.ntnu.no/~oystesk/CPP/htm/ch01.htm

  6. #6
    Registered User
    Join Date
    Feb 2002
    Posts
    22
    Thanx for the tips both!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. JavaScript book recommendations
    By neandrake in forum Tech Board
    Replies: 2
    Last Post: 04-05-2009, 12:27 PM
  2. A good C++ Reference book
    By tiachopvutru in forum C++ Programming
    Replies: 5
    Last Post: 05-13-2008, 04:47 PM
  3. Array error learning from a book
    By cjohnman in forum C Programming
    Replies: 2
    Last Post: 05-05-2008, 08:28 AM
  4. new book about game programming using DirectX
    By Carlos in forum Game Programming
    Replies: 0
    Last Post: 09-20-2005, 08:30 AM
  5. Can't display book and borrower's details.
    By grscot in forum C++ Programming
    Replies: 0
    Last Post: 05-02-2003, 10:18 AM

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