#include <iostream>
#include <string>
void showCat() {
std::cout << R"(
/\_/\
( o.o )
> ^ <
)" << std::endl;
}
int main() {
const std::string correctPassword = "132bvywqe4r";
std::string inputPassword;
std::cout << "Введите пароль: ";
std::cin >> inputPassword;
if (inputPassword == correctPassword) {
std::cout << "Пароль верный! Вот ваш аниме кот:" << std::endl;
showCat();
}
else {
std::cout << "Неверный пароль!" << std::endl;
}
return 0;
} Почему то выдает непонятные символы.
Когда просит вести пароль.
#include <string>
void showCat() {
std::cout << R"(
/\_/\
( o.o )
> ^ <
)" << std::endl;
}
int main() {
const std::string correctPassword = "132bvywqe4r";
std::string inputPassword;
std::cout << "Введите пароль: ";
std::cin >> inputPassword;
if (inputPassword == correctPassword) {
std::cout << "Пароль верный! Вот ваш аниме кот:" << std::endl;
showCat();
}
else {
std::cout << "Неверный пароль!" << std::endl;
}
return 0;
} Почему то выдает непонятные символы.
![317141028_1b2c2ab449b02706bb7152a2e284aea6_800.png](https://otvet.imgsmail.ru/download/317141028_1b2c2ab449b02706bb7152a2e284aea6_800.png)
Когда просит вести пароль.