#include #include #include "apvector.h" #include "apstring.h" int main() { ifstream input; apstring filename; apstring word; apvector list; cout << "enter file name: "; cin >> filename; input.open(filename.c_str()); while (input >> word) { list.push_back(word); } cout << "# of words read = " << list.size() << endl; cout << "vector capacity = " << list.length() << endl; return 0; }