I thought that might not be enough to work with. but i just learned something.
I compiled the program with Dev-C++ and it worked flawlessly. Its only when I was compiling with Visual Studio 2008 that it didn't work.
I guess that means that the iterators are fine (at least according to Dev-C++).