#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Auto
{
private:
string producent;
string kolor;
int pojemnosc_silnika;
public:
void zapisz_dane()
{
cout << "Podaj producenta: ";
cin >> producent;
cout << "Podaj kolor: ";
cout >> kolor;
cout << "Podaj pojemnosc silnika: ";
cout >> pojemnosc_silnika;
system("pause");
}
void wyswietl_informacje()
{
system("cls");
cout << "Wywolanie funkcji wyswietl_informacje: " << endl;
cout << "Kolor: " << endl;
cout << "Nazwa producenta: " << endl;
system("pause");
}
float pojemnosc_silnika()
{
return pojemnosc_silnika;
system("pause");
}
};
int main()
{
Auto(string producent; string kolor; int pojemnosc_silnika)
{
this->producent = producent;
this->kolor = producent;
this->pojemnosc_silnika = pojemnosc_silnika;
}
Auto pierwsze("Honda", "zielony", 2.0);
pierwsze.wyswietl_informacje();
Auto drugie("Fiat", "czarny", 1.6);
drugie.wyswietl_informacje();
Auto a1, a2, a3, a4, a5, int a [5];
a1.zapisz_dane();
a2.zapisz_dane();
a3.zapisz_dane();
a4.zapisz_dane();
a5.zapisz_dane();
Auto*a = new Auto[5];
a.zapisz_dane();
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}