Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
GCC bug #79511
#include <iostream> #include <codecvt> #include <string> #include <iomanip> int main() { // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 static char const src[] = "\xE2\x82\xAC"; std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> conv; auto const dst = conv.from_bytes(src); std::cout << std::hex << std::setw(4) << std::setfill('0') << (unsigned) dst[0] << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
sortbyfrequency(hasing+sorting using comparator function)
volatile thread-safe object
Proyecto 1
Zadanie Kalkulator z bajerami
suffle array
Test 8(2010)
Left view of a tree
Print All Paths In Matrix
Scope guarding
Dejalo a la Suerte
Please log in to post a comment.