Bajardi: Mamadaliyev Maqsadbek


Download 1.11 Mb.
Sana03.08.2023
Hajmi1.11 Mb.
#1664738
Bog'liq
maqsadbek


MUHAMMAD AL-XORAZMIY NOMIDAGI

TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI

Fan: Dasturlash-2
Bajardi: Mamadaliyev Maqsadbek
Tekshirdi: Fayzullayeva Zarnigor

/******************************************************************************


Panorama (Kinolar)
*******************************************************************************/
#include
#include
#include
#include
using namespace std;
class Movies {
public:
string movie_name;
double kinoning_narxi;
string year;
string janiri;
int qanchakorilganligi;
Movies(string n, double p, string s, string c, int q) {
movie_name = n;
kinoning_narxi = p;
year = s;
janiri = c;
qanchakorilganligi = q;
}
};
int main() {
vector kinolar_royxati;

kinolar_royxati.push_back(Movies("Avatar", 3000000, "2008", "sarguzasht", 100000));


kinolar_royxati.push_back(Movies("Yulduzlarjangi", 20004, "2000", "fantasika", 32435));
kinolar_royxati.push_back(Movies("samolar",934238248,"1978","fantasika",53497));
cout << "Kinolar royxati:\n";
for (int i = 0; i < kinolar_royxati.size(); i++) {
Movies item = kinolar_royxati[i];
cout << "Kino nomi: "<< item.movie_name<<"\n" << " kinoning_narxii: " <}
list movie_sell;
movie_sell.push_back(Movies("merlin", 33929023, "2009", "sarguzasht", 23943343));
movie_sell.push_back(Movies("jeams bound", 327843274, "2003", "ilmiyfantastik", 4329432));

cout << "\n"<<"\n movie_sell:\n";


for (auto it = movie_sell.begin(); it != movie_sell.end(); it++) {
Movies item = *it;
cout << "Kino nomi: "<< item.movie_name<<"\n" << " kinoning_narxii: " <} }

Download 1.11 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling