jamshidthai

Jamshidthai

Posted on November 7, 2022

3-dars

BUgungi darsimizning mavzusi "cin".Buning vazifasi consolega biron bir narsa yozsak shuni asosiy ishlayotgan joytimizga chqarip beradi.bunga bir misol qiladigan bolsak

#include <iostream>
#include <iomanip>

using namespace std;
int main(){

int yil= 2005;
string tekst =" Turdiqulov ";
string tekst1 = "Jamshid " ;

cout << "Men" << tekst << tekst1 << yil << " yilda tugulganmn"<<endl;

return 0;
}
Enter fullscreen mode Exit fullscreen mode


`
Huddi shu tarzda ishlanadi.etibor qilgan bolsangiz "iomanip" degan so'z qoshildi, bu sozning manosi "int output stream" agar biz shu sozni kirgazmask bizda cin sozi oqimaydi .

💖 💪 🙅 🚩
jamshidthai
Jamshidthai

Posted on November 7, 2022

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