Thread: Vector problem.

  1. #16
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Type the line
    "gList.erase(gList.begin()+1);"
    note number of parentheses and commas

    If that doesn't work, post the actual error message you get.

  2. #17
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Do you know the difference between a comma and a semicolon?

  3. #18
    Registered User
    Join Date
    Oct 2008
    Posts
    65
    oh missed one post u posted.

  4. #19
    Registered User
    Join Date
    Oct 2008
    Posts
    65
    AAAAAAAH

    Im to tired for this, haha..

  5. #20
    Registered User
    Join Date
    Oct 2008
    Posts
    65
    well no error message now.

    but still no luck on the erase part.
    meaning that it is not erasing.

    how come?
    Last edited by And3rs; 10-14-2008 at 05:35 PM.

  6. #21
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by And3rs View Post
    well no error message now.

    but still no luck on the erase part.
    meaning that it is not erasing.

    how come?
    Quote Originally Posted by tabstop View Post
    (Not that this line could ever happen, since choice == list2 must always evaluate false, since you are comparing the addresses of the arrays.)
    I'm guessing you never fixed this part yet. (And of course choice==list suffers from the same fate.) And you're not using C++ strings why?

Popular pages Recent additions subscribe to a feed