Microsoft Visual C++/cli step by Step


  Build the application. 4



Download 2,23 Mb.
Pdf ko'rish
bet65/102
Sana31.12.2021
Hajmi2,23 Mb.
#228061
1   ...   61   62   63   64   65   66   67   68   ...   102
Bog'liq
Visual studio C step by step

3. 

Build the application.



4. 

Run the application several times, typing a different month each time. Verify that the applica-

tion displays the correct season name each time.

Performing loops

For the rest of this chapter, you’ll see how to perform loops in C++/CLI. You’ll also see how to perform 

unconditional jumps in a loop by using the break and continue statements.

C++ has three main loop constructs: the while loop, the for loop, and the do-while loop.



Note  There is actually a fourth loop type, the for-each loop, but I’ll leave discussing that 

until we get to arrays.

Let’s look at the while loop first.

Using while loops

while loop continues executing its body for as long as the condition in parentheses evaluates to 

true. The following example shows how to write a simple while loop in C++/CLI:




Download 2,23 Mb.

Do'stlaringiz bilan baham:
1   ...   61   62   63   64   65   66   67   68   ...   102




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish