Va o’rta-maxsus ta’lim vazirligi sharof rashidov nomidagi samarqand davlat universiteti matematika


Download 1.92 Mb.
bet1/4
Sana15.01.2023
Hajmi1.92 Mb.
#1094074
  1   2   3   4
Bog'liq
aaaa


O’ZBEKISTON RESPUBLIKASI
OLIY VA O’RTA-MAXSUS TA’LIM VAZIRLIGI SHAROF RASHIDOV NOMIDAGI SAMARQAND DAVLAT UNIVERSITETI MATEMATIKA FAKULTETI

AMALIY MATEMATIKA YO’NALISHI
301-guruh talabasi
Salomov Shoxruh
Programalash asoslari fanidan

LABARATORIYA
ISHI


Tekshirdi:Islom Karimov
Tayyorladi:Salomov Shoxruh

SAMARQAND 2022

1-LABARATORIYA
Mavzu: Visual studio C++da “Hello Vorld” dasturini ekranga chiqarish dasturini tuzish



2-rasm

  1. Form1 oynasiga 2 ta label va 2ta panel kompanentasini qushdim. Label1 ni panel1 ichiga joylashtirdim va label1ni text xossasiga “Hello World” deb yozdim.label2ni panil2ni ichiga joylashtirdim va label2 ni text xossasiga “Jaylash Hello!!!” deb yozdim(2-rasm).

  2. Dasturimizni kod qismi:



System::Drawing::Color::FromArgb(static_cast(static_cast(0)), static_cast(static_cast(0)),
static_cast(static_cast(192)));
this->panel2->Controls->Add(this->label2);
this->panel2->Location = System::Drawing::Point(0, 298);
this->panel2->Name = L"panel2";
this->panel2->Size = System::Drawing::Size(756, 60);
this->panel2->TabIndex = 2;
//
// label2
//
this->label2->Anchor = static_cast((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
| System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Merriweather Black", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast(0)));
this->label2->Location = System::Drawing::Point(302, 17);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(166, 26);
this->label2->TabIndex = 0;
this->label2->Text = L"Jaylash Hello!!!";
this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;




Download 1.92 Mb.

Do'stlaringiz bilan baham:
  1   2   3   4




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