c++ Sintaksis
maxsharr
Posted on March 23, 2023
Assalomu alaykum men bugun c++ darsturlashda Sintaksis xaqida o'rganim chiqdim sizlarga birma bir tushuntirib beraman
Misol uchun:
#include <iostream>
using namespace std;
int main()
{
cout <<"Hello world";
return 0;
}
1 qator #include bu nma degani (include) chaqirish iostream
degani kutubhona degani bu degani #include iostream ni chaqiryapti
2 Using namespace std biz kutubhonadan kodlardan foydalanishimizi anglatadi
3 int main bu funksya biz bu funksyaga har qancha kod yozsak boladi faqat jingale qovusi icida yozilishi shart
4 cout korish uchun degani bu yerga kod yozishimiz kerak boladi
5 return 0 bu kodini tugatish uchun yoziladi buni jingalak qavus ichida yozish shart
💖 💪 🙅 🚩
maxsharr
Posted on March 23, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.