DEV Community

Abdumutal
Abdumutal

Posted on

3 3

C++ dagi maxsus belgilar

\n

\n - backslash n
Ushbu belgi string ichiga yoziladi. Bu belgi bor joydan yangi qatorga yoziladi. Masalan ⬇️

    cout << "Salom\n dunyo." << endl;

Salom
  dunyo.
Enter fullscreen mode Exit fullscreen mode

\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
Enter fullscreen mode Exit fullscreen mode

\b

backslash b

cout << "olma\b bexi" << endl;

olm bexi
Enter fullscreen mode Exit fullscreen mode

Bu \b oldingi 1 dona belgini o'chirib yuboradi.

Top comments (1)

Collapse
 
heyumid profile image
Umid

Don't stopping!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay