Created
June 14, 2017 11:09
-
-
Save sat0b/ea615423a5fd176366d1ab312050f33b to your computer and use it in GitHub Desktop.
日本語を逆順に表示
This file contains hidden or 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 <string> | |
| #include <codecvt> | |
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| wstring_convert<codecvt_utf8<char32_t>, char32_t> cv; | |
| u32string s = U"あいうえお"; | |
| for (auto v : s) | |
| cout << cv.to_bytes(v) << endl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment