Thread: operating with vectors

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It's part of the language. It's as good as any to teach newbies how to use these new features IMHO.
    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.

  2. #17
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by Elysia View Post
    It's part of the language. It's as good as any to teach newbies how to use these new features IMHO.
    It's part of the language that is fairly unportable still and only when using specific flags to make compilers features that are still in beta mode. I've had g++ crash on me before for using the auto keyword (on a function, using it properly though).

    So I can't advise anyone on using it yet until C++0x is a bit more widely developed.

  3. #18
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'll be damned if I have to wait on some buggy compiler to catch up before I can use the long-awaited C++0x. Not had a single crash (compiler crash) with VS2010. Therefore, I recommend that everyone use it (that is, if they can) until such time that more compilers mature.
    You may disagree with this mythology, but it's my of doing things. So unless a newbie cannot, for some reason, use C++0x, I will suggest code that uses it. It also helps them prepare for the upcoming 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.

  4. #19
    Registered User
    Join Date
    May 2010
    Posts
    22
    Hi
    this algo is correct,
    But you see sometimes the entire 2nd row if pushed into 1st row if all elements in 2nd row pass a test. So forloop is not advisable. I use while loop onle here.....

    SO i want a better way to check for pushing elements and resizing the master array of 5 into 4 or lesser bsaed on the element shift. Its simple loic but i cant get the psuedo code...please help me!!!!
    thanks
    regards
    KR

  5. #20
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    I agree with EvoEx on this one. The features are proposed for inclusion in a future standard and, given the way the standardisation process works, there is a risk a number of those proposed features will not be ratified, or there will be some changes to the manner in which they are eventually ratified. It is therefore misleading to suggest the features are "part of the language".

    I certainly wouldn't advocate that any novice use such features. Experienced programmers, who are both willing to accept and able to manage the risks, may wish to use them (eg as a learning exercise, contributing to testing of the compiler).
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  6. #21
    Registered User
    Join Date
    May 2010
    Posts
    22
    hey
    thanks for the help...
    to run it continously.. i have to use a flag like a bool value.. inside the while and operations....
    it helped
    cheers!
    regards
    KR

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using/ Searching through Multiple Vectors
    By bengreenwood in forum C++ Programming
    Replies: 10
    Last Post: 08-03-2009, 08:35 AM
  2. Vectors
    By naseerhaider in forum C++ Programming
    Replies: 11
    Last Post: 05-09-2008, 08:21 AM
  3. How can i made vectors measuring program in DevC++
    By flame82 in forum C Programming
    Replies: 1
    Last Post: 05-07-2008, 02:05 PM
  4. How properly get data out of vectors of templates?
    By 6tr6tr in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 10:35 AM
  5. Why Can't C++ Be Used to Develop Operating System?
    By Antigloss in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2005, 06:16 AM