C++ dagi maxsus belgilar
Abdumutal
Posted on March 28, 2022
\n
\n - backslash n
Ushbu belgi string
ichiga yoziladi. Bu belgi bor joydan yangi qatorga yoziladi. Masalan ⬇️
cout << "Salom\n dunyo." << endl;
Salom
dunyo.
\t
Backslash tab
Bu ham string
ichida yoziladi va bu bo'lgan joy tab tugmasi bosilgada chiqadigan masofada joy bo'sh qoldirib ketiladi. ⬇️
cout << "olma\tbehi\tanor"
olma behi anor
\b
backslash b
cout << "olma\b bexi" << endl;
olm bexi
Bu \b
oldingi 1 dona belgini o'chirib yuboradi.
💖 💪 🙅 🚩
Abdumutal
Posted on March 28, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.