I wrote code on windows 10 in visual stduio 2017, later transferred .cpp'шник
to Ubuntu, where I ran it, but I encountered the same problem: gcc copies the code without errors, but incorrectly interprets and displays text characters, but not numbers. Which encoding needs to be converted for Ubuntu. And what encoding is used in Ubuntu?
|
$ locale
(@ Fat-Zer, the answer is wrong) - aleksandr barakinlocale
does not say in what encoding the terminal works ... and in order not to paint all this, the “if short” clauses are enough ... - Fat-Zer