I\'m trying to learn the STL library and I\'m having a weird problem. This code compiles perfectly:
void Show(vector myvec) { vector
You need to say typename vector::iterator it.
typename vector::iterator it
On another note, you're passing vectors by value. That means the entire vector gets copied in the function call. void Show(vector const &myvec) and using const_iterator would be wiser.
vector
void Show(vector const &myvec)
const_iterator