Code will not compile - code from a book!

This is a discussion on Code will not compile - code from a book! within the C++ Programming forums, part of the General Programming Boards category; yes ma'am. Sorry to have brought it up ma'am....

  1. #16
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    yes ma'am. Sorry to have brought it up ma'am.

  2. #17
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Well, I looked up istream::get on my compiler's MSDN and missed the prototype at the top:
    int get();

    So I found the next simplest one and used that instead
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #18
    Registered User Chubz's Avatar
    Join Date
    Sep 2004
    Posts
    16
    Quote Originally Posted by caroundw5h
    Here is a decent tutorial that answers your question. You may want to start off with a tutorial first and then for a more indepth look get a book, and one that isn't Archaic Actually I hear pretty good things about Bruce Eckel's Thinking in C++ 2 it's a free e-book with tons of source code.
    As to the FAQ I trully believe it needs to be updated, just keep coding and experimenting and coming back to the board, that's what it's hear for.

    Cheers
    Ah, awesome links!

    I'm about to check out that "Bruce Ecekl's Thinking in C++ 2" here in a few minutes, so hopefully that will give me some help.

    Thanks for the support guys! It really means alot to me!

  4. #19
    Registered User
    Join Date
    Dec 2003
    Posts
    6
    Another awesome book that will introduce you to ideas C++ and then explain it well is "C++ How To Program" by the Deitels. I got a copy on either Ebay or Amazon.com for less than $10.

  5. #20
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by Chubz
    Ah, awesome links!

    I'm about to check out that "Bruce Ecekl's Thinking in C++ 2" here in a few minutes, so hopefully that will give me some help.

    Thanks for the support guys! It really means alot to me!
    Your welcome let's see what comes out of it

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

Similar Threads

  1. Can you compile the following template function code?
    By George2 in forum C++ Programming
    Replies: 8
    Last Post: 03-06-2008, 07:16 PM
  2. Compile time of C versus C++ code
    By circuitbreaker in forum C++ Programming
    Replies: 20
    Last Post: 02-06-2008, 05:26 PM
  3. why the code can compile -- about function pointer
    By George2 in forum C++ Programming
    Replies: 3
    Last Post: 01-20-2008, 02:25 AM
  4. Trying to Compile a Dhrystone C Code program
    By JAYMAN in forum Linux Programming
    Replies: 3
    Last Post: 01-28-2006, 10:17 AM
  5. prime numbers code compile error
    By Tony654321 in forum C Programming
    Replies: 5
    Last Post: 10-10-2004, 10:13 AM

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