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

  1. #16
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    Quote Originally Posted by Elysia View Post
    Don't forget that there are libraries too. If you're lucky, you might find one or two books in one.
    We have two here, but one is only accessible to Indiana University students. The local library for the city has only the Teach Yourself books and DUMMIES series. When I asked why they simply replied with 'because the college equivalent are at the IU campus library' so I'm better off just buying them if and when I can (which is why I'm buying used because wife would have killed me if I spent almost $400 on all brand new books).

    Hmm...Amazon didn't show me until after I bought the C++ Standard Library that there was a newer C++11 version. Should I have bought that one instead? Guess I can always get it later too or read things online in regards to C++11 features and what was added.
    Last edited by BHXSpecter; 05-16-2013 at 09:23 AM. Reason: Added who I was quoting. I'm picky that way.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by BHXSpecter View Post
    Hmm...Amazon didn't show me until after I bought the C++ Standard Library that there was a newer C++11 version. Should I have bought that one instead? Guess I can always get it later too or read things online in regards to C++11 features and what was added.
    Yes, you should have. Consider asking if you can return it. If not, it's not the end of the world, but you know, it would have been better if you could have...
    C++11 is huge. It is not an incremental add on. It's almost an entire language that needs be taught from scratch. You will find that many ways of doing things in the older C++03 standard are rather obsolete now (raw pointers, for example).
    I would recommend you read through a C++11 book instead of trying to retroactively append it to whatever you've learned. Wikipedia has a good article on what's new in C++11. Also, in case you are interested, C++14 is just around the corner. I doubt there are books yet, but if you are interested in what's new, check out isocpp.org.
    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.

  3. #18
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    You will find that many ways of doing things in the older C++03 standard are rather obsolete now (raw pointers, for example).
    O_o

    No.

    If you only care about compilers where C++11 support is offered, you don't need to invest in methods to support other compilers. That's a fact, but studying those methods shouldn't cost you much in any event, and you should certainly be able to appreciate the new offerings if you understand the current offerings.

    "Obsolete" isn't the same as "simpler ways are available" or even "deprecated".

    What you reference will not be obsolete for a long time if ever an aspect becomes obsolete at all.

    Once again, don't make judgement calls for people; if you don't, I will not waste my time or yours by needing to post this same post. You can proselytize C++11, and eventually C++14, without fabricating nonsense or making judgement calls you don't have the information to make well.

    Instead of this approach you've again offered, why not "You will find many new ways of accomplishing the same things in C++11 thanks to new features that reduce reliance on inherited techniques.". You still get your message across, but that approach is devoid of the judgement call.

    Soma

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, okay, I don't mean it exactly as people interpret it as (a weakness of mine, you might call it).
    What I mean is that in the new standard, you will that certain things are done much differently than in the old (and for good reason).
    I would, for simplicity's sake, recommend that you learn the methods used in the newer standards first, and only fall back on older methods as you need them. I doubt that there is any complete C++11 book that will cover everything, so it might be wise to read a C++11 book first before reading books based on the older standard.
    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.

  5. #20
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    One problem. You are assuming I'm some noob looking to learn C++, which I am not. I have been programming in some form for 16+ years now. My wife and son's health has made me realize I need to turn my love of programming into a career. Unfortunately, I fell for all the bull the books out there gave about teaching you C++ and most ended up just seeming like the glazed over language features then ended with "You've learned to program, now go program." I just felt like the books I have read were terrible at teaching and feel like I'm missing so much about the language as to why I have so many issues with programming in C++. I have read C++ for Dummies back in '96 and felt lost, have since read Sams entire line of Teach Yourself C++ books (21 Days, 24 hours, 10 minutes), and the all have seemed lacking. I still felt lost even though I understood the classes, variables, io, functions, etc. and didn't know what advanced things they had outside of the basics.

    The books I have never touched linked lists, binary trees, or anything like that. Don't think they even touched structs outside of saying structs are public by default and classes are private otherwise they are basically the same thing. I'm just glad that now I have a path other than the usual path beginner books give of "You finished, now go program!".

  6. #21
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Quote Originally Posted by BHXSpecter View Post
    One problem. You are assuming I'm some noob looking to learn C++, which I am not. I have been programming in some form for 16+ years now. My wife and son's health has made me realize I need to turn my love of programming into a career. Unfortunately, I fell for all the bull the books out there gave about teaching you C++ and most ended up just seeming like the glazed over language features then ended with "You've learned to program, now go program." I just felt like the books I have read were terrible at teaching and feel like I'm missing so much about the language as to why I have so many issues with programming in C++. I have read C++ for Dummies back in '96 and felt lost, have since read Sams entire line of Teach Yourself C++ books (21 Days, 24 hours, 10 minutes), and the all have seemed lacking. I still felt lost even though I understood the classes, variables, io, functions, etc. and didn't know what advanced things they had outside of the basics.

    The books I have never touched linked lists, binary trees, or anything like that. Don't think they even touched structs outside of saying structs are public by default and classes are private otherwise they are basically the same thing. I'm just glad that now I have a path other than the usual path beginner books give of "You finished, now go program!".
    I hate how books like that make it seem like there is nothing more to programming than knowing a programming language. That's like saying there's nothing more to being an author than knowing how to write in a natural language. Being literate is certainly required to be an author, but it's not sufficient.

    Likewise, teaching someone a programming language isn't the same as teaching someone to program. They are actually separate skills, though you need to know at least one language before you can really learn to program. The second skill is something that takes far more time and practice to hone.
    Last edited by Cat; 05-16-2013 at 10:03 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

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