#include
#include
#include
using namespace std;
int liczba;
struct car
{
string marka;
int rok;
};
int main()
{
cout<<"Ile samochodow chcesz skatalogowac? ";
cin>> liczba;
car *carstruct = new car [liczba];
for (int i = 0 ; i< liczba; i++)
{
cout<<"Samochod "<>carstruct[i].marka;
//getline(cin , carstruct[i].marka);
cout<<"Rok produkcji: ";
cin>>carstruct[i].rok;
}
for (int j = 0 ; j < liczba ; j++ )
{
cout<
#include
#include
using namespace std;
int liczba;
struct car
{
string marka;
int rok;
};
int main()
{
cout<<"Ile samochodow chcesz skatalogowac? ";
cin>> liczba;
car *carstruct = new car [liczba];
for (int i = 0 ; i< liczba; i++)
{
cout<<"Samochod "<>carstruct[i].marka;
//getline(cin , carstruct[i].marka);
cout<<"Rok produkcji: ";
cin>>carstruct[i].rok;
}
for (int j = 0 ; j < liczba ; j++ )
{
cout<
- Najlepsze
- Wszystkie komentarze







#include
#include
using namespace std;
int