DEV Community

kenccik
kenccik

Posted on

Izoh

izoh deganda bu komentariy yozish degani C++ da komentariy yozish uchun biz "//" shu belgini qoysak ishlaydi bu faqat bitta qator uchun bir necht ajoyni komentariy olish uchun esa biz komentariyni boshiga /* oxiriga esa / qoyamiz, man hozir bulani cod qilib korsataman.
**BU 1 TA LIK KOMENTARIY UCHUN
*

#include <iostream>
using namespace std;
int main() {
//bu bir qator uchun 
return 0;
}
Enter fullscreen mode Exit fullscreen mode


*BU ESA / / KOMENTARIY UCHUN *

#include <iostream>
using namespace std;
int main () {
/* The code below will print the words Hello World!
to the screen, and it is amazing */
Enter fullscreen mode Exit fullscreen mode

Top comments (0)