Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- struct masina
- {
- string marca;
- string culoare;
- int vitezamax;
- struct specificatii
- {
- int cai_putere;
- string tractiune;
- int numarusi;
- int serie_sasiu;
- } specs ;
- string data_fabricatie;
- } a;
- int main()
- {
- a.marca="Ford EcoSport";
- a.culoare="alb";
- a.vitezamax=173;
- a.specs.cai_putere = 13;
- a.specs.tractiune= "AWD";
- a.specs.numarusi= 5;
- a.specs.serie_sasiu= 5384347823;
- a.data_fabricatie = "12/2016";
- cout<<"INFORMATII GENERALE"<<endl;
- cout<<a.marca<<" "<<a.culoare<<" "<<a.data_fabricatie<<endl;
- cout<<a.vitezamax<<" "<<"km/h"<<endl;
- cout<<"\nSPECIFICATII"<<endl;
- cout<<a.specs.serie_sasiu<<endl;
- cout<<a.specs.cai_putere<<endl;
- cout<<a.specs.tractiune<<endl;
- cout<<a.specs.numarusi<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment