Thread: Need some advices about c++ ,not just about the code

  1. #1
    Registered User Foxefde's Avatar
    Join Date
    Mar 2013
    Location
    Lithuania
    Posts
    17

    Need some advices about c++ ,not just about the code

    Hey there,

    I just finished watching a couple of videos about the classes, created a Twenty Five puzzle(without classes,just saying ).The only thing i want to do now is to learn classes,but I don't really know what special i can create with them,I really need like 20 exercises with classes for the begginner to understand what for are they...

    And basically...That's just one of the 1000~ questions i would like to ask about programming,but I don't really want to start spamming in the forum with noob questions, it would be great if anyone would help me with it,in skype maybe =] Eh...

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Read the books from below, in approximately this order; you'll soon be able to answer virtually any question that may be asked of C++.

    Soma

    Accelerated C++
    The C++ Standard Library
    Effective C++
    More Effective C++
    Effective STL
    Exceptional C++
    More Exceptional C++
    Exceptional C++ Style
    C++ Templates
    C++ Template Meta-programming

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    The only thing i want to do now is to learn classes,but I don't really know what special i can create with them
    Well ask yourself what the computing world did before classes existed? Was there like no programming at all? no business software? no games? They are not the be all and end all of programming, never have been, never will be.

    Do you really know why you should want to use classes? They are very useful, and c++ wholly embraces them, but it also is a language that can work entirely usefully without them.

    Classes in c++ help you to think and write very creatively and hopefully in a more natural way about your program elements, but they still have to be designed, written, and utilised properly to benefit from those things. And i am not lecturing because i am no expert, the concept of classes is a part of object orientated programming, and c++ was not the first language to describe it. Nor was Eddie Van Halen the first guitarist to employ finger-tapping technique - but he was certainly the first to truly evolve it and bring it to the masses.
    Last edited by rogster001; 05-10-2013 at 04:04 PM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  4. #4
    Registered User
    Join Date
    Jan 2012
    Location
    Lithuania
    Posts
    2
    Foxefde
    The only thing i want to do now is to learn classes,but I don't really know what special i can create with them,I really need like 20 exercises with classes for the begginner to understand what for are they...
    simply said, will shorten the amount of text, working with others on same project, etc.

    I have just finished whole video tutorials, and I'm now happy that I can start creating my own games without problems, so I really encourage you to complete watching all of them

    My skype name is Waras_ , add me if you want and maybe I'll share something with you
    Last edited by Waras; 05-13-2013 at 06:07 PM.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    phantomotap I would tweak your list by adding one book before those. Need to get the other books though, just lack the money for it.

    Jumping into C++
    Accelerated C++
    The C++ Standard Library
    Effective C++
    More Effective C++
    Effective STL
    Exceptional C++
    More Exceptional C++
    Exceptional C++ Style
    C++ Templates
    C++ Template Meta-programming

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by BHXSpecter View Post
    phantomotap I would tweak your list by adding one book before those. Need to get the other books though, just lack the money for it.
    I'd say any one of the first two should be read, not both.
    Both introduce the language in a similar way and have similar depth.
    On the other hand, I haven't yet recommended Jumping into C++ to 'absolute beginners' so can't say how effectively it would teach from scratch, which is something Accelerated C++ is good at.

  7. #7
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    Didn't know, can't afford the books that are considered good because they cost more than I make (which is nothing). I don't work, spend my days taking care of my wife and son. Both have FSH Muscular Dystrophy and are wheelchair bound from it while son has a trach and feeding tube in and an impaired airway so he stops breathing when scared or agitated.

    Other than those differences in the two I completely agree with the list as it is the same list I've seen on other sites (probably taken from here).

  8. #8
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    I've thoroughly read and done all the exercises from "Accelerated C++" so I know it is tops as far as beginner C++ books are concerned.

    I own "Jumping into C++" as well, but I haven't studied it in the same fashion so I will not recommend.

    That's not to say it isn't equivalent to the purposes of that suggestion; I just don't know that it is equivalent.

    As manasij7479 says though, having both on the list is a mistake.

    Soma

  9. #9
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    I suck at giving advice. That is why I don't post much on any forums. I'll keep my recommendations to myself and leave it to those who have a better grasp on this than I do .

  10. #10
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    I'll keep my recommendations to myself and leave it to those who have a better grasp on this than I do
    O_o

    That's stupid.

    You know, or at least have evidence, that both books in question ("Accelerated C++" and "Jumping into C++") are the foundation of C++ that all the other books in the list build upon so having both is unnecessary.

    If you have studied "Jumping into C++" and feel confident it develops a similar understanding of C++, you know you can feel free to recommend the list otherwise without "Accelerated C++".

    If you would not have expressed your recommendation, you would not necessarily have gained those two bits of information.

    Giving advice is a good thing so learning to give better advice is necessarily a good thing.

    Soma

  11. #11
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    The question I have is which list should I invest in? You have quite a large list while the web sites recommended books are smaller.

    Jumping Into C++
    Practical C++ Programming
    Programming Pearls
    Effective C++
    More Effective C++
    The C++ Programming Language

    I invested in The C++ Programming Language during college and recently got Alex's Jumping into C++ and father-in-law got me the kindle version of Practical, but nervous about which collection I should get to further my learning. I'm wanting to get a job programming to have an income for my wife and son and just worried I may invest in the wrong path to help me learn.

  12. #12
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    The book "Jumping Into C++" is foundational just as discussed.

    The book "Practical C++ Programming" is just a bloated foundational text; it does little beyond what "Accelerated C++" does, but it doesn't do it as well thanks to the lack of concise focus. Yes, I do own "Practical C++ Programming", and yes, I have studied it; I would not recommend it as supplemental material or primary foundational text.

    The book "The C++ Programming Language" is not really a foundational text though it attempts to be a useful learning guide. Much like "Practical C++ Programming", "The C++ Programming Language" makes for a poor foundational text thanks to a lack of focus due to the attempt to cover a little of all of C++; however, it actually makes good supplemental material as a desk reference. That said, other books on my list do a better job of actually teaching the esoteric corners putting it lower on the list of books I'd recommend because when working as a reference you'll already need to know much of the foundation to examine specific components.

    The books "Effective C++" and "More Effective C++" are on both lists.

    You can also get by with out some of them if you are worried about money; specifically, the books "Effective STL", "More Exceptional C++", and "Exceptional C++ Style" all cover material either partially covered by other books in my list, use rather specific corner cases, or are purely supplemental in that no new aspects of C++ programming are covered.

    That leaves the lists as:

    Code:
    Programming Pearls
    Code:
    The C++ Standard Library
    Exceptional C++
    C++ Templates
    C++ Template Meta-programming
    Your list includes nothing with the concise and excellent coverage of the C++ standard library that is offered by "The C++ Standard Library".

    Finally, your list includes nothing which even really touches on the material thoroughly examined by "C++ Templates" and "C++ Template Meta-programming".

    If you want a mastery over C++, use my list.

    By the way, my list is actually one of the best you'll find; it includes more books, but each book is very focused, very concise, having on a little duplication between books.

    Consider this, three of the books on your list will cover the exact same foundational material worth a few hundreds pages. You are, then, wasting a couple of books worth of material. You should at least remove one or the other in favor of "The C++ Standard Library" or "C++ Templates".

    Soma

  13. #13
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    Alright. Thanks. Going to look into used copies from Amazon to try and save a few bucks here and there. A lot of reading, but gives me something to do this summer.

    Just bought the first five books used on the list. Due to money constraints I won't be able to get the others, may be able to do one book a month after that as most of the used books after the top 5 are still close to new price. They will keep me busy for quite a while though.
    Last edited by BHXSpecter; 05-16-2013 at 01:57 AM.

  14. #14
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by BHXSpecter View Post
    Alright. Thanks. Going to look into used copies from Amazon to try and save a few bucks here and there. A lot of reading, but gives me something to do this summer.
    I found a good(in my opinion) and free book, from source forge.
    It is a accumulation of the teaching notes and remarks of some professor.
    Google "C++ Annotations".
    What I found useful about it is that the author has put a lot of effort into assembling it from a large collection of books and possible personal experience.

    And on "Programming Pearls" --it is a nice book, just not on C++.
    It'll teach you some niffy programming tricks and algortihms, without going into much theory.

  15. #15
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by BHXSpecter View Post
    Alright. Thanks. Going to look into used copies from Amazon to try and save a few bucks here and there. A lot of reading, but gives me something to do this summer.

    Just bought the first five books used on the list. Due to money constraints I won't be able to get the others, may be able to do one book a month after that as most of the used books after the top 5 are still close to new price. They will keep me busy for quite a while though.
    Don't forget that there are libraries too. If you're lucky, you might find one or two books in one.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need some advices with tic-tac.My code is to long ...
    By Foxefde in forum C++ Programming
    Replies: 9
    Last Post: 04-01-2013, 09:49 AM
  2. i need some advices
    By chillout in forum C++ Programming
    Replies: 1
    Last Post: 09-25-2010, 03:28 PM
  3. Advices about an exercise.
    By Tool in forum C Programming
    Replies: 34
    Last Post: 06-08-2010, 09:05 AM
  4. Advices about the approach ?
    By unix7777 in forum C++ Programming
    Replies: 1
    Last Post: 01-18-2009, 12:54 PM
  5. C programming career advices
    By ting in forum A Brief History of Cprogramming.com
    Replies: 51
    Last Post: 03-08-2008, 04:54 PM

Tags for this Thread