5-labartoriya ishingizga yukalsh oynasini qo’shib, yuklash oynasi ko’ringanidan 5 sekunddan so’ng asosiy oynani ochuvhi dastur tuzing va hisobot yozing foydalangan holda.
#pragma endregion
private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
if (progressBar1->Value < 100)
{
progressBar1->Value += 1;
label1->Text = Convert::ToString(progressBar1->Value) + "%";
}
}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
timer1->Start();
}
};
}
|
7-LABARATORIYA
6-labartoriya ishingizdagi yukalsh oynasini noodatiy (uchburchak, to’rtburchak, aylana va h.k.) ko’rinishga keltiring (rasmga qarang) va hisobot yozing.
8-LABARATORIYA
Har bir talaba jurnaldagi raqamiga mos bo'lgan funksiyani visula studioda foydalangan holda grafigini chizuvchi dasturini tuzib hisobot yozish kerak.
private: System::Void Button1_Click(System::Object^ sender, System::EventArgs^ e)
{
for (float i = 0; i <= 3; i += 0.1)
{
chart1->Series[0]->Points->AddXY(i, (i * (i - 2 ))* 1. / (i - 1));
}
}
|
9-LABARATORIYA
8-labartoriya ishingizgadagi garifkining rangini colorDialog yordamida rangni tanlab o’zgartiruvchi dasturni tuzing va hisobot yozing.
private: System::Void Button1_Click(System::Object^ sender, System::EventArgs^ e)
{
for (float i = 0; i <= 3; i += 0.1)
{
chart1->Series[0]->Points->AddXY(i, (i * (i - 2 ))* 1. / (i - 1));
}
}
private: System::Void Button2_Click(System::Object^ sender, System::EventArgs^ e) {
if (colorDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
chart1->Series[0]->Color = colorDialog1->Color;
}
}
|
Do'stlaringiz bilan baham: |