Thread: range based for command

  1. #16
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    I don't think you have many options other than compiling from source now...with mingw.

    Btw...if you are adventurous enough...how about installing a Linux distro (on most of which installing gcc-4.6 would be point and click business)?
    If you are worried about partitioning try it in a virtual machine.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by tabl3six View Post
    I've searched for the 4.6 compiler. Doesn't seem to exist. I went to the GCC website and saw a link for it there, but the information is so overwhelming, not sure what to do.

    I would think the author of the book wouldn't put examples of code you couldn't easily run. This seems like pulling teeth to me.

    Think I'm going to ignor the C++0x chapter.
    I cannot condone with that.
    Even if one feature doesn't work does not mean they all won't. You'll learn a lot by studying this, even if you can't try them all out.
    They're going to be important in the future. Best to at least know of these coming features now.
    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
    Registered User
    Join Date
    Jun 2011
    Posts
    46
    Elysia:
    I did read through the chapter. Thing is I need to run the examples and do the exercises to learn this stuff. I'm going to install Visual Studio 2010 when I get home and maybe some of the commands will work on that.

    I really don't want to skip anything. This has just been frustrating. A lot of cool features to try out. I do feel like I'm missing something.

  4. #19
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Visual studio 2010 has support for the following C++0x features:
    auto
    lambdas
    rvalue references
    decltype
    nullptr
    static_assert

    For more info: Intellisense and Browsing with C++0x - Visual C++ Team Blog - Site Home - MSDN Blogs

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by tabl3six View Post
    Elysia:
    I did read through the chapter. Thing is I need to run the examples and do the exercises to learn this stuff. I'm going to install Visual Studio 2010 when I get home and maybe some of the commands will work on that.

    I really don't want to skip anything. This has just been frustrating. A lot of cool features to try out. I do feel like I'm missing something.
    Well, it's nice to hear you aren't going to ignore it.
    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. Reversing the traversal of c++0x's range based for
    By Mozza314 in forum C++ Programming
    Replies: 29
    Last Post: 03-15-2011, 06:11 PM
  2. Replies: 5
    Last Post: 11-27-2010, 12:42 PM
  3. Conditional if based on command line arguments problem
    By DimensionX in forum C Programming
    Replies: 4
    Last Post: 11-05-2009, 04:38 AM
  4. Get pid based on command
    By 3saul in forum Linux Programming
    Replies: 1
    Last Post: 07-01-2006, 12:52 AM
  5. Range
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 05-23-2002, 10:52 AM