Microsoft Visual C++/cli step by Step


  Continue working with the project from the previous exercise. 2



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

1. 

Continue working with the project from the previous exercise.



2. 

Modify the code in the main function by replacing the entire body of the function with the 

following code:

Console::WriteLine("Welcome to your calendar assistant"); 

 

int count = 1;    // Declare and initialize the loop counter 



while (count <= 5)   // Test the loop counter 

    Console::Write("\nPlease enter a date "); 



    Console::WriteLine(count); 

 

    int year = GetYear(); 



    int month = GetMonth(); 

    int day = GetDay(year, month); 

    DisplayDate(year, month, day); 

 

    count++;   // Increment the loop counter 



}


70  

Microsoft Visual C++/CLI Step by Step

3. 

Build and run the application. The application prompts you to enter the first date. After you 

have typed this date, the application prompts you to enter the second date. This process con-

tinues until you have typed five dates, at which point the application closes, as depicted in the 

following screen shot:


Download 2,23 Mb.

Do'stlaringiz bilan baham:
1   ...   63   64   65   66   67   68   69   70   ...   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