
Chapter 17: Prelab Assignment
Introduction to Data Structures Using the Standard Template Library | 437
Name __________________________________________ Date _______________________
Section _________________________________________
Examine the following application and answer Exercise 1.
//******************************************************
// This program demonstrates the use of STL vector
//******************************************************
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
using namespace std;
int main ()
{
vector<string> myVector; // Create an empty vector
string word;
ifstream inFile;
inFile.open("words"); ...