Skip to content

Instantly share code, notes, and snippets.

View WerySkok's full-sized avatar
🐢
Slowly learning...

Alexander Minkin WerySkok

🐢
Slowly learning...
View GitHub Profile
@proffix4
proffix4 / CppConsoleUTF8win.cpp
Created November 19, 2023 17:01
Console UTF-8 application with boost
#pragma execution_character_set( "utf-8" ) // for MSVC
#include <boost/nowide/args.hpp> // for utf8_to_utf16
#include <boost/nowide/fstream.hpp> // for fstream
#include <boost/nowide/iostream.hpp> // for cout, cerr, cin, clog
using namespace boost::nowide; // for cout, cerr, cin, clog
using std::endl; // for endl
int main()
@proffix4
proffix4 / CppConsoleLinux.cpp
Created November 18, 2023 11:27
Cpp Console Linux example
#include <clocale>
#include <string>
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
string fio;
cout << "Введите строку: ";