//rent_pay #include #include #include #include #include #include using namespace std; struct pay_in{ string date; int sum; }; struct renter{ vector identif; vector datas; }; enum status{is_false, is_true}; bool read(status & it_is, renter & e, ifstream &x); void write(ofstream &y, renter & e1); int main() { string fname; cout << " - the name of the inp. file: "; cin >> fname; ifstream x(fname.c_str()); if(x.fail()) { cerr << " - there is no such input file! "< h; e.identif.resize(0); string tmp; inf>>tmp; while(!inf.fail()){ h.push_back(tmp); inf>>tmp; } int n=h.size(); // n data in a row if(n!=0) { cout<<" - the data in the row are: "< #include #include struct circle{ int circ_nr; std::string circ_time; }; struct racer{ std::vector names; std::string stall; std::vector dat; }; enum Status{is_false, is_true}; // #endif // SEQINFILE_H_INCLUDED *********************************************** #include "struct.h" bool read(status & it_is, racer & e, ifstream &x); *********************************************** #include "infile.h" #include #include #include using namespace std; bool read(status & it_is, appart & app, ifstream &x) { string line; getline(x, line); if (!x.fail()) { it_is=is_true; stringstream inf(line); vector h; string tmp; inf>>tmp; while(!inf.fail()){ h.push_back(tmp); inf>>tmp; } int n=h.size(); // n data in a row } else it_is = is_false; return true; } void write(ofstream &y, racer & e1) { y << e1.Fam_name ; int n=e1.First_n.size(); for(int i=0;i