Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- #include <fstream>
- using namespace std;
- class Person
- {
- };
- class Car
- {
- public:
- string CarModel;
- Person* Owner;
- Person* Driver;
- };
- int main()
- {
- ifstream in;
- in.open("input.txt");
- int n;
- //cin >> n;
- string data;
- vector <string> persons;
- while (in >> data)
- {
- persons.push_back(data);
- }
- in.close();
- ofstream out;
- out.open("output.txt");
- int m;
- //cin >> m;
- for (int i=0; i<m; i++)
- {
- out << persons[i] << " ";
- }
- out.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement