Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
682 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <math.h>
#include <fstream> 
using namespace std;
struct tachka {
    string cvet;
    int moshnost, passajiri, probeg;
    string marka, model;
    float obem;
};

int odin()
{
    setlocale(LC_ALL, "Russian");
    tachka a;
    ifstream file("sex.txt"); 
    file >> a.cvet >> a.moshnost >> a.marka 
        >> a.model >> a.passajiri >> a.obem 
        >> a.probeg;
    a.probeg = 0;

    cin >> a.cvet;
    // 1
    cout << a.cvet << endl << a.moshnost << endl << a.marka << endl
        << a.model << endl << a.passajiri << endl << a.obem << endl
        << a.probeg << endl;


}
int dva(){
    

}