23.12.2012 22 Newbie Poster

I think you should have used vector<TYPE> my_vec .