3-dars
Jamshidthai
Posted on November 7, 2022
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;
}
`
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
Posted on November 7, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.