c ++ da cout cin

shoxjaxon2008

Shoxjaxon2008

Posted on February 22, 2023

c ++ da cout cin

Bugun sizlar bilan cout cin ni qanday ishlashini , nimalar yordamida ishlashini ko'rib chiqamiz . va ularni ma'nosi va farqlarini ham maqolam davomida aytib o'tib ketaman .

cout - bu ekranga chiqarish . # output so'zidan olingan .
cout yordamida biz o'zimiz hohlagan narsalarni hohlaganimizcha chiqarishimiz mumkin . bunda faqat biz yozgan narsalar chiqadi
ammo uni variables lar yordamida ham ishlatsa bo'ladi .

cin - bu kirgizish . # input so'zidan olingan .
cin ga biz shart bergandan keyin son yoki kiritilishi kerak bo'lgan matn kiritamiz .

esda tut !
esda tutish kerak cin yani output orqali ko'da yozmoqchi bo'lsak yozadigan narsamizni tipi va o'zgaruvchisi bo'lishi kerak .

biz ko'd yozayotganimizda ikkisi ham bizga kerak bo'ladi .
ular bir biriga bo'g'liq tomoni ham mana shunda input output bittasi kiritsa ikkinchisi chiqarib beradi .

farqi cin ga biz kiritamiz yana biz kiritgan son cindan katta bo'ladi .
cout da esa oldindan yozib qo'yamiz unda esa biz yozib qo'ygan son cout dan kichik bo'ladi .

Mavzuni tushundingiz degan umiddaman keyingi maqolalarimgacha hayr salomat bo'ling .

💖 💪 🙅 🚩
shoxjaxon2008
Shoxjaxon2008

Posted on February 22, 2023

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

Sign up to receive the latest update from our blog.

Related

while, do-while and for loops in C++
beginners while, do-while and for loops in C++

March 7, 2024

If statements in C++
beginners If statements in C++

March 4, 2024

Operators and true folse .
beginners Operators and true folse .

March 14, 2023