My vector problem solved

I posted a problem the other day about declaring vectors in header files and have now solved it after a week. It turns out all you have to do is use a ".cpp" file for the declaration.
Sounds like "programming by coincidence". The only difference between a header file and a .cpp file is that the text of the header can be included in more than one .cpp file.
Topic archived. No new replies allowed.