1234567891011121314151617181920212223242526272829303132333435363738 |
- #include <iostream>
- #include <fstream>
- #include "PointSystem.h"
- using namespace std;
- int main() {
-
- cout << "Serial example." << endl;
-
- PointSystem system1;
- system1.addPoint(42);
- system1.addPoint(420);
- system1.addPoint(12);
- system1.display();
-
- ofstream sOut("data.txt");
- sOut << system1;
- sOut.close();
-
- ifstream sIn("data.txt");
- sIn >> system1;
- sIn.close();
-
- system1.display();
- return 0;
- }
|