Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Christian Ballard
- // COSC 1337
- // 9/21/15
- // Lab 4 - Structures, Arrays, and Vectors
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main()
- {
- string fileName = "Lab4a_data.txt";
- ifstream fin (fileName);
- fin.open(fileName);
- string firstName[41];
- string middleName[41];
- string lastName[41];
- int ageElected[41];
- string stateOfBirth[41];
- while (getline(fin, firstName[0], ':'));
- {
- cout << firstName[0];
- }
- while (getline(fin, middleName[0], ':'));
- {
- cout << middleName[0];
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment