Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Build char string (multibyte) with wchar
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> int main() { const wchar_t* pWideString = L"123"; char pConverted[16]; sprintf_s(pConverted, "%S 456", pWideString); std::cout << pConverted << std::endl; }
run
|
edit
|
history
|
help
0
Hangman
#30.2
throwing Copyable versus throwing MoveOnly
variable template not supported
Regex success
amusing overload choice
infix to postfix v 3.0
const reference life time extension
std::function ambiguity vc++
MSVC ignoring unknown attributes