Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <iostream>
- #include <string>
- using namespace std;
- string ru(const char *s)
- {
- char *b = new char[strlen(s)];
- CharToOem(s, b);
- string r(b);
- return r;
- };
- int main()
- {
- cout << ru("Яблоко");
- cout << ru("русский текст в консолb");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement