Results 1 to 11 of 11

Thread: I'm struggling....

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    I'm struggling....

    Learning all of the language concepts of C++; basically, I was brought up on QBasic and GW-Basic and thus don't have a clue what is going on in the world of C++. I'd like to learn though.

    Anybody recommend a book, for a basic programmer to learn C++ from the ground up? I'd also like for it to cover Windows-specific programming (ex. MFC/alternatives, Win32 callbacks), and Linux-specific programming. I suppose this may span 3 or 4 books, but if you know of them, name'em!

    If they could be picked up at Chapters.ca it would be a plus.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Learn the language first, rather than even *thinking* of any OS-specific code.

    It should compile on any system, until such point as you decide to use OS-specific APIs or suchlike.

    Thinking in C++ is pretty good (www.bruceeckel.com). After that, probably Petzold for Windows. I do have a book on GNU/Linux programming, but not really read it much yet. Any GOOD Unix book should cover the material, though, unless you want to know kernel-related stuff (which is most definitely C, not C++).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I mentioned it because I have money NOW (not necessarily later), and need to know what books I can buy that'll cover the topic well.

    How'd you learn, Mike?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by Sastraxi
    I mentioned it because I have money NOW (not necessarily later), and need to know what books I can buy that'll cover the topic well.

    How'd you learn, Mike?
    The hard way =).

    I still dont own a specifically C++ book, so I cant really recommend one. Sorry.

    Z.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by Sastraxi
    I mentioned it because I have money NOW (not necessarily later), and need to know what books I can buy that'll cover the topic well.

    How'd you learn, Mike?
    TIC++ is free, and is all you should realistically need other than the Standard Library documentation for at least the first 6 months or so.

    I learnt the hard way. BBC BASIC, then C (still on a BBC, wooooo!), then migrated to a bit of C on RISC OS. Tried to do C++ with MFC on the PC after a year or so with nothing, had great difficulty and tried VB instead. Got quite good, spent a couple of years there.

    Then picked C back up again, and subsequently C++.

    At which point I learnt about iterators and started getting good with templates. That took me the next two years or so.

    Basically, I had a nasty journey to where I am, which is why I say learn good C++ *now* rather than later, when you've been ruined by another language.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I'm reading the electronic version of the book that Parksie recommended, and I think it's really cool. I've just read the part about abstraction and I think it's a neat concept. I especially like the idea of calling one thing, and the object decides what to do with it, either inheriting its parent's method or using its own. Very cool stuff.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Wait until you get onto generic algorithms using containers, they're fantastic (and exceptionally efficient, because they're mostly evaluated at compile-time).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Welcome to the world of cool stuff =).

    Z.

  9. #9

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Hehe
    I had to take a break for a nap, but now I'm back and reading more C++!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  10. #10
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    C++ lets you do the coolest things. Mostly thanks to templates, polymorphism and operator overloading (two of those concepts are missing in Java).

    Is your avatar Morla, Sas?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  11. #11
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by CornedBee
    C++ lets you do the coolest things. Mostly thanks to templates, polymorphism and operator overloading (two of those concepts are missing in Java).

    Is your avatar Morla, Sas?
    Templates are the most beautiful things in the world =).

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width