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


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


Download 48.25 Kb.
bet17/17
Sana23.11.2023
Hajmi48.25 Kb.
#1795130
1   ...   9   10   11   12   13   14   15   16   17
Bog'liq
1-topshiriq to’g’ri burchakli uchburchakning a va-fayllar.org

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
http://fayllar.org
Download 48.25 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