dev-resources.site
for different kinds of informations.
Maxsus belgilar | C++ boshlang'ich
Published at
4/29/2024
Categories
beginners
uzbek
programming
cpp
Author
islomali99
Author
10 person written this
islomali99
open
string
va maxsus belgilar
Avvalgi postimizda yozganimizdek, C++ tilida tekstlar string deb ataladi va qo'shtirnoq ichida " "
orasida yoziladi.
cout << "Salom Dunyo" << endl;
1.\
- escape character
- ushbu belgi string/tekst ichida maxsus komandalar/belgilar yozish uchun ishlatiladi.
string ichida yozish mumkin bo'lmagan ba'zi belgilar mavjud. Masalan: U "zo'r" bola.
deb chop etish uchun C++ da "U "zo'r" bola."
deb yozish xatolik beradi. BUnga sabab string ichida " belgisi ishlatsa, string tugaganini anglatadi.
string ichida shunga o'xshash ta'qiqlangan belgilarni yozish uchun \
ishlatiladi.
cout << "U \"zo'r\" bola." << endl;
\
belgisini o'zini chop etish uchun nima qilamiz ?
\\
qilib yoziladi
cout << "Bugun \\ belgisini asl kuchini ko'rdik!" << endl;
----------natija-----------
Bugun \ belgisini asl kuchini ko'rdik!
2.\n
- yangi qator
- ushbu maxsus belgi string register ichiga yozilsa, shu
string
ni chop etishda \n bor joydan boshlab keyingi qator o'tib ketadi.
cout << "Salom\nDunyo" << endl;
--------------natija-------------
Salom
Dunyo
-
\t
- Tab (tabulation)
-
string
ichiga yozilganda tekst ichiga TAB bo'sh joy chop etadi
cout << "olma\tanor\tbexi" << endl;
------------natija-----------
olma anor bexi
-
\r
- carriage return
- chop etilayotgan qatorda kursorni qator boshiga olib keladi. Yana chop etishda davom etilsa avval yozilgan tekstlarni o'chirib ustiga yozib yuboradi.
cout << "Github 'vashshe' malades \rIlmhub" << endl;
----------natija--------
Ilmhub 'vashshe' malades
uzbek Article's
30 articles in total
Command design pattern 🥷 O'zbek tilida
read article
Memento Design Pattern O'zbek tilida
read article
Mediator design pattern O'zbek tilida
read article
2D va 3D massivlar haqida C#(C-Sharp) tilida tushuncha
read article
Pattern Matching | Uzbek | C#
read article
Pattern Matching | Uzbek | C#
read article
StringBuilder | C#
read article
Properties in C# | Uzbek
read article
Classes in C# | Uzbek
read article
Nullable value Types | C#
read article
TryParse C# | Int32. Uzbek
read article
Maxsus belgilar | C++ boshlang'ich
currently reading
setw() & setfill() | C++ boshlang'ich
read article
Computer Vision: from 0 to HERO (5-dars)
read article
Computer Vision: from 0 to HERO (4-dars)
read article
Computer Vision: from 0 to HERO (3-dars)
read article
Computer Vision: from 0 to HERO (1-dars)
read article
Computer Vision: from 0 to HERO (intro)
read article
C++ dasturlash tili (1-dars)
read article
Masala
read article
Masofa | Masala
read article
C++ maxsus belgilari
read article
C++| Variables & Data Types
read article
Terminal komandalar| Part 2
read article
TERMINAL KOMANDALARI QUIZ GAME TEST.
read article
C++ foundation | O'zgaruvchilar
read article
My first post
read article
Terminal komandalari | 4, 5
read article
C++ dasturlash tili | 2
read article
Terminal. Day 2
read article
Featured ones: