Untitled
unknown
plain_text
2 years ago
706 B
6
Indexable
#include <iostream> #include <fstream> using namespace std; struct car { char color; int power; string mark; string model; int countpass; double dvizok; int probeg; }; int main() { ifstream in("text.txt"); ofstream out("2text.txt"); if (!in.is_open()) { cout << ""; } car abo; in >> abo.color >> abo.power >> abo.mark >> abo.model >> abo.countpass >> abo.dvizok >> abo.probeg; /*out << abo.color << endl << abo.power << endl << abo.mark << endl << abo.model << endl << abo.countpass << endl << abo.dvizok << endl << abo.probeg;*/ abo.probeg = 0; abo.color = 'R'; cout << "Y " << abo.mark << " " << abo.model << " skruchen probeg i on raven " << abo.probeg; }
Editor is loading...