Well, I got through those other hurdles, but now I am stuck with trying
to get an iterator to work.
I am having a problem with trying to iterate through the STL list
container that I set up. I have the #include<list> and the using
std::list; and then a using std::list<int>::iterator; but I get an error
that says, "p3a.cpp:12: error: `std::list<int, std::allocator<int> >' is
not a namespace"
So it stops working on any iterators before I can even get to them.
Then it says they are undeclared. If I comment out the code having to
do with iterators and this one std::list<int>::iterator; part of the
code my program works so far. But I really need that iterator to see
that my list is filling up properly. Any suggestions?
I didn't want to post all the code, it is a class assignment and I would
be embarrased by the simplicity of it compared to you who are experts.
If the code is needed to help with this problem, I will be glad to post it.
--
KL