Last active
December 21, 2017 07:00
-
-
Save truongan/cd9a7e9a0401e8447e9064df588cc378 to your computer and use it in GitHub Desktop.
How to write a wchar literal in C++ and output its binary representation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <bitset> | |
using namespace std; | |
int main() | |
{ | |
wchar_t A[] = L"bỏ dấu cho đúng chính tả em ơi"; | |
for(auto x : A){ | |
cout << bitset<16>( x ) << endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment