Like Tree3Likes

range based for command

This is a discussion on range based for command within the C++ Programming forums, part of the General Programming Boards category; I don't think you have many options other than compiling from source now...with mingw. Btw...if you are adventurous enough...how about ...

  1. #16
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    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.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  2. #17
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    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.
    Elysia likes this.

  4. #19
    Registered User
    Join Date
    Aug 2003
    Posts
    1,198
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    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.

Page 2 of 2 FirstFirst 12
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, 11:42 AM
  3. Conditional if based on command line arguments problem
    By DimensionX in forum C Programming
    Replies: 4
    Last Post: 11-05-2009, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21