Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //17(б)
- #include <iostream>
- using namespace std;
- struct carOwner
- {
- string F, IO, carModel, carColor, carNumber;
- };
- int main()
- {
- int N;
- setlocale(LC_ALL, "russian");
- cout << "Введите количество владельцев авто:";
- cin >> N;
- carOwner Massive[N];
- for(int i = 0; i < N; i++)
- {
- cout << "Введите фамилию и инициалы владельца #" << i+1 << "; ";
- cin >> Massive[i].F;
- getline(cin, Massive[i].IO);
- cout << "Введите марку машины владельца #" << i+1 << "; ";
- cin >> Massive[i].carModel;
- cout << "Введите номер машины владельца #" << i+1 << "; ";
- cin >> Massive[i].carNumber;
- cout << "Введите цвет машины владельца #" << i+1 << "; ";
- cin >> Massive[i].carColor;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement