1-topshiriq to’g’ri burchakli uchburchakning a va


ListBoxda Add() metodi orqali element qo’shish dasturini tuzing


Download 49.33 Kb.
bet17/17
Sana21.04.2023
Hajmi49.33 Kb.
#1373416
1   ...   9   10   11   12   13   14   15   16   17
Bog'liq
dasturlash

ListBoxda Add() metodi orqali element qo’shish dasturini tuzing

if (textBox1->Text != "") {
int cout = listBox1->Items->Count+1;
listBox1->Items->Add(cout+ ") " + textBox1->Text);
textBox1->Text = "";
}

17. Berilgan sanadan 15 kun keyingi sanani Labelda chop etish daasturini tuzing (Ko’rsatma: DateTimePicker)
18. Berilgan sanadan 15 kun keyingi sanani Labelda chop etish daasturini tuzing (Ko’rsatma: DateTimePicker)
System::DateTime ^today =DateTime();
today = dateTimePicker1->Value;
System::DateTime ^answer = today->AddDays(15);
//label1->Text = Convert::ToString(today);
label2->Text = Convert::ToString(answer);

19. Ikkita sana berilgan. Shu sanalar oralig’ida nechta kun bor(Ko’rsatma: 2 ta DateTimePicker)
20. ListBoxda 10 ta sana berilgan. Shu sanalarning qaysi hafta kuniga to’g’ri kelishini ikkinchi listBoxda chop qiling
Download 49.33 Kb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   17




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