Пустые строки в C++

Содержание
Пример
Другие статьи о С++

Пример

Чтобы создать пустую строку нужно использовать двойные кавычки.

empty_line = "";

E0025 quoted string should contain at least one character

Обычно появляется когда вы пытаетесь создать пустую строку но делаете это с одинарными кавычками.

empty_line = ''

Нужно заменить одинарные кавычки двойными.

empty_line = "";

Article author: Andrei Olegovich

Похожие статьи
Development на C++
Перегрузка функций
-c: Компиляция
Разбиение кода на части
Вектор
Указатели
Классы
SFML
Тетрис на C++ с библиотекой SFML2
SDL
Массив Структур
Как узнать тип переменной C++
Решение задач на C++
Запросы к REST API на C++
Ошибки C++
Make
Banner image

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: