Untitled

 avatar
unknown
plain_text
2 years ago
592 B
2
Indexable
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
struct car {
    char color;
    int power;
    string marka;
    string model;
    int passajiri;
    float obiem;
    int probeg;
};


int main()
{
    car n;
    ifstream file;
    file.open("car.txt");
    file >> n.color >> n.power >> n.marka >> n.model >> n.passajiri >> n.obiem >> n.probeg;
    n.probeg = 12345;
    cin >> n.color;

    cin >> n.color >> endl >> n.power >> endl >> n.marka >> endl >> n.model >> endl >> n.passajiri >> endl >> n.obiem >> endl >> n.probeg;
    
}
Editor is loading...