Maxsus belgilar | C++ boshlang'ich

Published: (February 12, 2026 at 02:03 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

String va maxsus belgilar

Escape belgi \ string yoki tekst ichida maxsus komandalar/belgilarni yozish uchun ishlatiladi.

" " – qo’shtirnoq ichida qo’shtirnoqni chiqarish

cout << "U \"zo'r\" bola";

Natija

U "zo'r" bola

\\ – teskari chiziq (\) ni chiqarish

cout << "\\";

Natija

\

\n – yangi qator

cout << "Salom\nDunyo";

Natija

Salom
Dunyo

\t – katta bo’sh joy (Tab)

cout << "olma\tanor\tbexi";

Natija

olma    anor    bexi

\r – qator boshiga qaytish

cout << "Salom\rDunyo";

Natija

Dunyo

Boshqa umumiy escape belgilar

EscapeMa’nosi
\"qo’shtirnoq (")
\\teskari chiziq (\)
\nyangi qator
\ttab (kattaroq bo’sh joy)
\rqator boshiga qaytish
0 views
Back to Blog

Related posts

Read more »

I Fixed Windows Native Development

Build Requirements: Install Visual Studio > If you’re lucky enough not to know this yet, I envy you. Unfortunately, at this point even Boromir knows… Well put,...

나만의 함수

사용자정의 함수 Function: 특정 작업을 수행하기 위해 작성된 코드 블록 함수의 선언정의 - 인자 argument = 매개변수 parameter - 수행문 - 반환값 return python def 함수_이름인자1, 인자2, ...: 수행문 1 수행문 2 return 인자의 종류...

17. C# (Char)

The Real Goal of This Lesson > “When you only need a single character, why should you use char instead of string?” This lesson is not about syntax. It is about...