C++ Chiqarish operatori.

islomali99

islomAli99

Posted on February 21, 2023

C++ Chiqarish operatori.

Assalamu aleykum bugungi darsimiz qisqa bo'ladi bugun siz bilan C++ dasturlash tilida chiqarish operatori haqida gaplashamiz.

C++ dasturlash tilida "cout" kalit so'zi << bilan birgalikda chiqarish operatori yoziladi.

Operator - bu dasturlash tilida aniq bir maqsadga yo'naltirilgan.Ishni ma'lum qismini yani C++ misol uchun chiqarish operatori, takrorlash operatori, shart operatori va bir qanchasini misol keltirsa bo'ladi. Operatorlardan song ; bilan yakunlanadi. Ayrim operatorlar asosan {} figurniy qavs bilan ishning ma'lum bir vazifasini bajariladigan qismi yakunlanadi.

C++ dasturlash tilida chiqarish operatori uchun misol keltiramiz:

#include <iostream>
using namespace std;

int main()
{
cout << "Hello World! Ilmhub IT school";

return 0;
}

Enter fullscreen mode Exit fullscreen mode

Natija: Hello World! Ilmhub IT school

Siz C++ dasturlash tilida cout ni hohlagancha ishlatishingiz mumkin. Unutmang bu zaylda chiqarish operatorini ishlatish jarayonida har bir qatorda chiqadi.Quydagi kodga nazar soling.

#include <iostream>
using namespace std;

int main()
{
cout << "Salom Dunyo";
cout << "Ilmhub IT school";

return 0;
}
Enter fullscreen mode Exit fullscreen mode

Natija: Salom Dunyo
Natija: Ilmhub IT school

💖 💪 🙅 🚩
islomali99
islomAli99

Posted on February 21, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

C++ Chiqarish operatori
programming C++ Chiqarish operatori

March 23, 2023

C++ Chiqarish operatori.
programming C++ Chiqarish operatori.

February 21, 2023