Want to learn C and C++

Sharky Forums


Results 1 to 8 of 8

Thread: Want to learn C and C++

  1. #1
    8 Wheels Move The Soul Ashpool's Avatar
    Join Date
    May 2001
    Location
    Brooklyn, NY
    Posts
    13,174

    Want to learn C and C++

    I've already got a decent foundation in Java w/ my skool, but that's the most 'heavy-duty' programming they offer in my degree (I doubt ksh, bsh, bash, etc. really count ).

    What would be a good place for me to start with C, book-wise? Maybe even C++ while I'm at it?
    #1) Big Box
    Core 2 Quad Q9550 - Asus P5Q3 - 8GB DDR3 1333 - GeForce 550Ti - Win 7 Pro
    #2) IBM Thinkpad R51
    Pentium M 1.6GHz - 1GB PC2700 - 80GB - Win 7 Pro

    #3) Macbook Pro
    2.4GHz Core i5 - 4GB - OS X Lion

    #4) Rollerskates
    Bont Quad Racer Carbon - Sure-Grip Avengers - Qube 8-Balls

    Now Playing: Forza 4, Wipeout HD, Dead Space 2 (again!)

  2. #2
    Hammerhead Shark
    Join Date
    Feb 2001
    Posts
    1,612
    I learned C with "The C Programming Language, 2nd Edition" by Kernighan & Ritchie. It's a fairly short book, but it does give an excellent foundation if you understand it.

    I can't really comment on C++ though -- I never learned that properly. C++ is too huge of a language, I just learn pieces of it when it's useful to me. (That mostly applies to the STL. I suppose the language itself wouldn't be too tough, but still it's more complicated than C.)

    Unless you realy need to learn C (i.e. for a job or something) though, I'd just try and write some C programs first, see if you can do it without a book. Once you know enough languages, it's not really necessary to get a book. Just read the available documentation, tutorials, and sample code to get a feel for things.

    Newer languages are probably better for that strategy though. I know there's so many blogs, etc. about C# that I would never consider buying a C# book. (Especially since the language is still changing pretty rapidly.)

  3. #3
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    The K&R book is excellent and inexpensive. I used it as a handy helper when I wanted to move from coding A (Algol) to something newer. C is based on A. Yes there was also a B language.

  4. #4
    Ultra Great White Shark!! richardginn's Avatar
    Join Date
    Feb 2001
    Posts
    16,118
    www.myeducational plan.com-come see my plan to fix the USA educational system. I hope this is sig legal. Major Site Design Update on July 18, 2006. On June 18, 2009 passed the 10,000 post mark. December 24, 2009: Major Theme change and more....

  5. #5
    Quote Originally Posted by Strogian
    I learned C with "The C Programming Language, 2nd Edition" by Kernighan & Ritchie. It's a fairly short book, but it does give an excellent foundation if you understand it.
    i'll be darned. i took a UCSD extension class in 1995 and that was the book we used.
    Main Rig ~ E6700, Intel 965G uATX board, eVGA 7600GT, XQ-Pack, Seagate 320 GB, Seasonic 430 Watts
    Backup Rig ~ Opteron 175, MSI 6150 "FIC" board, eVGA 7600 GT, XQ-Pack, Raptor 74 GB, Seasonic 430
    http://www.LASIKSOS.com/ ~ Health Warning about LASIK Eye Surgery

  6. #6
    Hammerhead Shark SprySpectre's Avatar
    Join Date
    Apr 2004
    Location
    audio nirvana...
    Posts
    1,251
    If you have a good grasp on Java, go straight to c++, it's similar enough and you should be able to teach yourself using some tutorials found online. Start with www.cplusplus.com and then Google for some more.
    Audio Setups:
    E-MU 0404 ---toslink---> Panasonic SA-XR55s ---> Ascend Acoustics CBM170's with Dayton 12"
    E-MU 0404 ---analog---> Little Dot II tube amp ---> Beyerdynamics DT880 or Sennheiser HD280 pros.
    Technics SL-1200 MKII ---> TCC TC-750LC Phono Preamp ---> Panasonic SA-XR55s ---> Ascend Acoustics CBM170's with Dayton 12"


    Proud Sharky Folding@Home member! (Rank 37 and counting...)

  7. #7
    Engineer credit to *****! flutie98's Avatar
    Join Date
    Mar 2002
    Location
    CNSE UAlbany
    Posts
    4,111
    if only you had learned the other way around... life would have been much easier

    its an ongoing movement to teach java as a first language in colleges i disagree with this move 500%
    Last edited by flutie98; 11-28-2006 at 07:41 PM.
    |Core i5 2500K @ 4.6GHz|MSI Z77-GD65|8.0GB G.skill DDR3 1600|XFX AMD 6870|
    |Samsung 830 SSD|HP LP2465 24" LCD|Antec P280|Seasonic X750 PSU|H2O Cooling|Windows 7 x64|

    |Core i3 2100|ASRock H61-GM|8.0GB DDR3|AMD Radeon 6450|Kingston V100+ SSD|
    |Antec Fusion V2|Epson 8350 1080P 3LCD on 100" EliteScreen|

    |ThinkPad T420|Core i5 2520M|8.0GB DDR3|OCZ Vertex 4|

    Audio: Radeon 6450 (HDMI)->Onkyo TX-NR509 ->Polk M60/M30/CSII + Velodyne VX10

  8. #8
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    I learned assembler first, then Cobol (gasp), Fortran IV and Algol. Those were all mainframe languages and the technioques used were directed at conserving memory, not make things structured or easy for other coders to follow. After all many mainframes had only 8k or 16k of memory. Harware was expensive and people were cheap.

    Now days memory consumption is meaningless, hardware is almost free and people cost lots of money. The best coders learn the most difficult languages first followed by the easy ones. That was true in the beginning and it is still true today. In that regard many so called languages are nothing more than scripts that must be interpreted at execution time. C is today's equivalent of assembler. It is what the most basic, closest to the hardware language that is used to create executable code.

Posting Permissions

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