dev-resources.site
for different kinds of informations.
switch
Published at
11/2/2024
Categories
cpp
coding
programming
beginners
Author
Sanjar Rashidov
Main Article
Switch - o'zgaruvchini tekshirish uchun foydalaniladi.
Switchda faqatgina "int" va "char" dan foydalana olamiz.
Masalan:
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
switch (day)
{
case 7:
cout << "I like it" << endl;
break;
case 77:
cout << "I love it" << endl;
break;
case 777:
cout << "I adore it" << endl;
break;
default:
cout << "none" << endl;
}
return 0;
}
Articles
12 articles in total
IL (Intermediate Language)
read article
CLR (Common Language Runtime)
read article
SDK vs Runtime
read article
.Net tarixi
read article
Arrays
read article
Function
read article
for loop
read article
do while loop
read article
Nested while loop
read article
while loop
read article
switch
currently reading
if else
read article
Featured ones: