I was in the process of eliminating usingnamespace std; but missed std::vector until I got the error message"undeclared identifier". Having just googled "clear vector" and implemented the results I mistakenly assumed it had something to do with the new code. I went through v.clear(), v.erase() and v.empty() for about 30 minutes before the nickel finally dropped. Anyway, thanks for the heads up.