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
Zero length array as a class member
#30.3
asock
Matrix paths right-down only, going through XY
Error log b is an undeclared identifier...
Increment pointer to struct
Wide string conversion with multibyte chars
c++ eval - double numbers v1.0
Is min defined?
Time Zone Registry