Quote:Original post by Captain P
A vector is not a function, bytheway - it's a container class, and part of C++' standard library.
I think that might be the problem, because in a another test program,
I made a simple class that uses just a vector of string and a *next variable.
When I try to access the vector of string, it gives me an error, invalid reading
of memory (something similar).
When I use the debugger, First I call the constructor, and the vector.resize()
func is called, and it is correctly sized. But when I call the addNode func,
The vector,exercise has no values, in the debugger it looks like this :
name Value type
Exercise [...]() std::vector<std::vector<std::basic_string ....and some more things
I tried using this->Exercise but its size invalid.
Also note that I created an Init Function, which inits the vector size
but It did not let me initialize it. It gives me another violation error.
I am thinking that the -> operator cannot be used with vectors correctly
without doing something different or complex.