Results 1 to 20 of 20

Thread: Books for learning C and C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    karamazovmm's Avatar スマトラ警備隊
    Join Date
    Aug 2009
    Location
    Brazil, São Paulo
    Posts
    9,639

    Default Books for learning C and C++

    Hey all!

    Do you guys know some good stuff for me to learn some good 'ol C stuff? Im trying to prepare for the programmers olympics.

    If there is more languages that you want to share go ahead, Im looking for some Kobol stuff too (for job purposes)

    The very ugly forgive, but beauty is essential - Vinicius de Moraes

  2. #2
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    C or C++? They're are completely different. You'll have to go the archives to find stuff on Cobol
    Oh no the picture of my dog disappeared!

  3. #3

    Default Re: Books for learning C and C++

    C#'s a good language. The syntax isn't as infuriating as C++ (imo) but it's still very powerful.

    Anyway, Sam's are generally great books.
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  4. #4
    karamazovmm's Avatar スマトラ警備隊
    Join Date
    Aug 2009
    Location
    Brazil, São Paulo
    Posts
    9,639

    Default Re: Books for learning C and C++

    both, Im going back to basics.

    C# is not on my plans yet, but if you have some good books do please tell me

    The very ugly forgive, but beauty is essential - Vinicius de Moraes

  5. #5
    Nietzsche's Avatar Too Human
    Join Date
    Aug 2008
    Location
    USA
    Posts
    1,878

    Default Re: Books for learning C and C++

    I've used this one. Pretty good stuff. I think it does require a little familiarity, but that's just me.
    To be governed is to be watched, inspected, directed, numbered, regulated, enrolled, indoctrinated, controlled, checked, estimated, valued, censured, and commanded, by creatures who have neither the right, wisdom, nor virtue to do so. To be governed is to be at every operation, at every transaction noted, registered, taxed, measured, numbered, assessed, licensed, admonished, reformed, corrected, and punished. It is, under pretext of public utility, and in the name of the general interest, to be placed under contribution, drilled, fleeced, exploited, monopolized, extorted, and robbed; then, at the slightest resistance, to be repressed, fined, vilified, harassed, abused, disarmed, choked, imprisoned, judged, condemned, shot, deported, sacrificed, sold, and betrayed; and to crown all, mocked, ridiculed, derided, outraged, and dishonored. -Pierre-Joseph Proudhon

  6. #6
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    Oh no the picture of my dog disappeared!

  7. #7
    ROFL Copter's Avatar Vicarius
    Join Date
    Oct 2008
    Location
    Edmonton, Alberta, Canada
    Posts
    2,616

    Default Re: Books for learning C and C++

    There are even youtube videos that can help get you off your feet. I learned a good bit of C++ from only the internet.

  8. #8

    Default Re: Books for learning C and C++

    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  9. #9
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    I'd stay away from sams. And I'll generally stay an arms length away from C++, horrible language at the best of times. And C#, don't get me wrong I love the idea of it but that's where it shows it's ugly face. It's based on a system programming language but is intended for multi purpose use, so it's neither as good as C or C++ (if you want to torture yourself) for system programming use or as good as an application programming language such as basic for application development.
    Last edited by Dewy; February 28, 2011 at 12:42 AM.
    Oh no the picture of my dog disappeared!

  10. #10

    Default Re: Books for learning C and C++

    What's wrong with Sams? It's definitely not for the new programmer, but I've gotten a lot of use out of it. And while I agree with C++, I think C# is a pretty good alternative. Look what they've done with C# and Unity. That's working out pretty well. I know it's not as powerful as C++, but the syntax makes up for it in my opinion.
    C# is superior in my opinion, because:

    -It's pretty simple to create decent GUIs, has event driven programming, and can go toe to toe with Vbasic.net for application development.
    -For larger -applications (games, etc) the JIT compiling is dynamic (CIL) and can adjust to individual PCs, while C/C++ are unmanaged native languages, so that's not an option.
    -Huge class libraries
    -Garbage collector (goodbye memory leaks)
    -No header files.
    Last edited by Bolkonsky; February 28, 2011 at 01:56 PM.
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  11. #11
    ROFL Copter's Avatar Vicarius
    Join Date
    Oct 2008
    Location
    Edmonton, Alberta, Canada
    Posts
    2,616

    Default Re: Books for learning C and C++

    What do you guys have against C++? I'm nothing but an amateur, but its the only language I've learned.

  12. #12
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    TWC has stopped me from posting this twice and I have to rewrite it again. So it's a lot shorter this time around.

    What's wrong with Sams?
    The books are like high school teachers, they tell you what code to write but do a horrible (if any) job at explaining why you do it. IIRC I've seen some horrible code in Sams.

    Look what they've done with C# and Unity.
    Unity is programmed in C++. C# is just a scripting language used by Unity

    -It's pretty simple to create decent GUIs, has event driven programming, and can go toe to toe with Vbasic.net for application development.
    vb.net is faster to develop with and they both compile to the CIL. I'll pick vb.net over C# for application development any day.

    -For larger -applications (games, etc) the JIT compiling is dynamic (CIL) and can adjust to individual PCs, while C/C++ are unmanaged native languages, so that's not an option.
    For most games you'll be using C/C++ anyway i.e OpenGL

    -Huge class libraries
    C and C++ have more libraries

    -Garbage collector (goodbye memory leaks)
    There is still memory leaks with garbage collection and added overhead.

    -No header files.
    Your point being?

    What do you guys have against C++? I'm nothing but an amateur, but its the only language I've learned.
    It does OOP horribly, and it's not even fully OOP. And generally horrible to use.
    Oh no the picture of my dog disappeared!

  13. #13

    Default Re: Books for learning C and C++

    Quote Originally Posted by Dewy View Post
    TWC has stopped me from posting this twice and I have to rewrite it again. So it's a lot shorter this time around.
    The books are like high school teachers, they tell you what code to write but do a horrible (if any) job at explaining why you do it. IIRC I've seen some horrible code in Sams.
    That's sort of true, but the further along you get the more they explain. They're good for people with some knowledge of how programming works before hand.

    Unity is programmed in C++. C# is just a scripting language used by Unity
    I didn't say it wasn't. It's worked out pretty well, I'm following a couple of indie games that are using it.

    vb.net is faster to develop with and they both compile to the CIL. I'll pick vb.net over C# for application development any day.
    That entirely depends on what type of application you're developing, and how used to developing apps you are with each language.

    For most games you'll be using C/C++ anyway i.e OpenGL
    Probably just because C is older and that's what most programmers know. A couple of projects based on C# that leap to mind are Axiom, and Lost Empire: Immortals. I'm sure there'd be more if I looked it up.

    C and C++ have more libraries
    As much as I enjoy disagreeing with you, I think you're right on this one.

    There is still memory leaks with garbage collection and added overhead.
    Yeah - If you're the worst at algorithms, then yes, there are. The whole C++ is faster/more efficient might be true if you're running a 10 year old system, but that's about it.

    Your point being?
    That it's a lot easier and simpler for someone like me to start programming on something without them.

    It does OOP horribly, and it's not even fully OOP. And generally horrible to use.
    Which is still why everybody uses it. So what would you recommend as a language? Python?
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  14. #14
    ROFL Copter's Avatar Vicarius
    Join Date
    Oct 2008
    Location
    Edmonton, Alberta, Canada
    Posts
    2,616

    Default Re: Books for learning C and C++

    I may be a little ignorant, but the thing I like about C++ is that it does everything. Nothing well, nothing easily, but it does everything.

  15. #15

    Default Re: Books for learning C and C++

    Quote Originally Posted by ROFL Copter View Post
    I may be a little ignorant, but the thing I like about C++ is that it does everything. Nothing well, nothing easily, but it does everything.
    Correction. You can do anything with it, but it doesn't do everything.

    For instance, JIT Compiling? No. Garbage Collection? No.
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  16. #16
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    That's sort of true, but the further along you get the more they explain. They're good for people with some knowledge of how programming works before hand.
    Arh so a syntax reference book disguised as a learning book. What a great point it its favour.

    Probably just because C is older and that's what most programmers know. A couple of projects based on C# that leap to mind are Axiom, and Lost Empire: Immortals. I'm sure there'd be more if I looked it up.
    Not a lot of games still use C code. Lost Empire uses C++ code (DirectX), I'm not doubting it uses C# for other things.

    Yeah - If you're the worst at algorithms, then yes, there are. The whole C++ is faster/more efficient might be true if you're running a 10 year old system, but that's about it.
    Err no. Most C# memory leaks come from native APIs which you're bound to use for complex software such as games.

    Which is still why everybody uses it. So what would you recommend as a language? Python?
    Just because loads of people use it doesn't mean it's good. Look at COD, masses drove to that pathetic game.

    Tools are useful for different needs. A spear is great for hunting but you're not going to use it to cut down a tree.
    Oh no the picture of my dog disappeared!

  17. #17

    Default Re: Books for learning C and C++

    Quote Originally Posted by Dewy View Post
    Arh so a syntax reference book disguised as a learning book. What a great point it its favour.
    I get the impression that Mr MM already knows some programming. I can understand how it'd be confusing if it's your first .NET introduction, but I haven't had a problem with it.

    Quote Originally Posted by Dewy View Post
    Not a lot of games still use C code. Lost Empire uses C++ code (DirectX), I'm not doubting it uses C# for other things.
    I'm pretty sure that the engine's C#. I'll have to look into it though. What about Axiom?

    Quote Originally Posted by Dewy View Post
    Err no. Most C# memory leaks come from native APIs which you're bound to use for complex software such as games.
    If you're using pointers, maybe, but then the case could be made that it'd be easier to use a CIL instead of pointers.
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  18. #18
    Dewy's Avatar Something Witty
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    4,697

    Default Re: Books for learning C and C++

    Quote Originally Posted by Bolkonsky View Post
    I get the impression that Mr MM already knows some programming. I can understand how it'd be confusing if it's your first .NET introduction, but I haven't had a problem with it.
    Sam's teach yourself. I can understand why most people would be confused. People go into reading it to learn programming not because they already know programming.

    Quote Originally Posted by Bolkonsky View Post
    I'm pretty sure that the engine's C#. I'll have to look into it though. What about Axiom?
    The mere fact it's using DirectX 9 to render the game means it's using C++ code. Either as a wrapper or a framework providing access to the DirectX API. I have no idea about Axiom, haven't even heard of it.

    Quote Originally Posted by Bolkonsky View Post
    If you're using pointers, maybe, but then the case could be made that it'd be easier to use a CIL instead of pointers.
    Garbage collection doesn't work for native (unmanaged) APIs, you still have to manage the native (unmanaged) code.
    Oh no the picture of my dog disappeared!

  19. #19

    Default Re: Books for learning C and C++

    Quote Originally Posted by Dewy View Post
    Sam's teach yourself. I can understand why most people would be confused. People go into reading it to learn programming not because they already know programming.
    I can see how the title would be misleading, true.


    Quote Originally Posted by Dewy View Post
    The mere fact it's using DirectX 9 to render the game means it's using C++ code. Either as a wrapper or a framework providing access to the DirectX API. I have no idea about Axiom, haven't even heard of it.
    Axiom's a C# port of Ogre.

    Quote Originally Posted by Dewy View Post
    Garbage collection doesn't work for native (unmanaged) APIs, you still have to manage the native (unmanaged) code.
    I don't know enough about complicated applications and games to comment, so I'll take your word for this.
    Under the Patronage of Leonidas the Lion|Patron of Imperator of Rome - Dewy - Crazyeyesreaper|American and Proud

  20. #20
    mp0295's Avatar Vicarius
    Join Date
    Jul 2008
    Location
    Long island, NY
    Posts
    2,836

    Default Re: Books for learning C and C++

    Oh I miss my programming days. I used to know a little C++ and PHP. Probably could relearn PHP though in a week.


    Track & Field = Life
    http://www.last.fm/user/mp0295

Posting Permissions

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