Multidimensional Vector
| hoity (8) |
|
|
I want to clear a Multidimensional vector but "clear()" function isn't working.Can anybody help me?
|
|
|
| L B (3805) |
|
|
If you clear the outer vector, all inner vectors are destroyed - is this not what you want? In what way is the clear function not working?
|
|
|
| points2008 (10) |
|
|
there's a flaw in Dev C++ compiler. So, it doesn't work on it
|
|
|
| L B (3805) |
|
|
Then don't use the old, outdated Bloodshed Dev-C++ compiler.
|
|
|
| points2008 (10) |
|
|
Old is gold. Dev C++ is good in many ways irrespective of its flaws.
|
|
|
| L B (3805) |
|
|
Dev-C++ has been updated since the old Bloodshed version that didn't even comply with the standard.
|
|
|
| points2008 (10) |
|
|
Yes. But still they weren't able to fix the problem.
|
|
|
| L B (3805) |
|
|
Then don't use Dev-C++ if you want a working compiler? I don't understand where the confusion is here.
|
|
|
| points2008 (10) |
|
|
Thats the only solution hoity :(
|
|
|
| L B (3805) |
|
|
Did you just assume the OPer is using Dev-C++? Or did he mention it elsewhere? It just seems like a random assumption.
|
|
|
| points2008 (10) |
|
|
I use Dev C++ and clear() wont work on it. and its obviously a random assumption.
|
|
|
| L B (3805) |
|
|
What do you mean by "clear() wont work on it"? Can you post the code you tested with? It might not be a bug with Dev-C++
|
|
|