DEV Community

Sardorpm
Sardorpm

Posted on

3 2

C++ maxsus belgilari

\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 (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more