When debugging an example of a console application, incomprehensible signs appear in the console instead of Russian letters. Instead of Oranges are not the only fruits, and all we have, fruit when debugging in the console is the wrong encoding. How to fix it?
#include <iostream> using std::cout; using std::endl; int main() { int apples, orange; int fruit; apples = 5; orange = 6; fruit = apples + orange; cout << endl; cout << "Апельсины не единственные фрукты......" << endl << "- и всего у нас " << fruit << " фруктов."; cout << endl; return 0; }