CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: bloo

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    Thanks so much! will try to do that.
  2. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    Hi Paul, I just attempted changing this code now. The previous error does not come up, but instead I have a new error: Debug Assertion Failed! Program: ...8puzzle.exe File: ....\include\vector Line:...
  3. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    oh I forgot to say that the debugger stops at a line in the vector file:
    _THROW(length_error, "vector<T> too long");
  4. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    Hi lindley I have tried what Paul suggested... using resize instead of reserve and I still get the same run time error, however I will use his other suggestions now and try again.

    The error I...
  5. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    okay, but i don't totally understand how to use the vector in the first place and as i mentioned previously the vector is giving me the runtime error.
    i do not want to resize them, as i explain the...
  6. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    header file:



    #ifndef HEADER_H
    #define HEADER_H

    #include <vector>
    using std::vector;
    class node{
  7. Replies
    14
    Views
    31,465

    Re: C++ vector length error at run time

    thanks for the reply, firstly i did mention that i felt my code was logically correct and i do understand that compiling means syntax, that's why i stated that it compiled.

    secondly as far as i...
  8. Replies
    14
    Views
    31,465

    C++ vector length error at run time

    Hi,

    I'm having a problem with vectors, its the first time i'm using this structure so i'm probably missing something obvious.

    What i'm trying to do is, create a class with a vector as a...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured