Skip to content

Commit e7b319a

Browse files
committed
added template for locale change
1 parent 869e7bb commit e7b319a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Test/Templates/locale.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main() {
5+
setlocale(LC_ALL, "Russian");
6+
wcout << L"Русский текст" << endl;
7+
cout << "English " << L"text" << endl;
8+
// в обычный cout нельзя выводить wide-строки
9+
}

0 commit comments

Comments
 (0)