Created
February 13, 2016 08:26
-
-
Save kidapu/ea898b3887a881faf062 to your computer and use it in GitHub Desktop.
C++ string format つくりたい
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
// test | |
string stringFormat(const char *format, ...) | |
{ | |
va_list va; | |
va_start(va, format); | |
char buffer[150]; | |
vsprintf(buffer, format, va); | |
va_end(va); | |
return (string)buffer; | |
} | |
//メモ。 | |
//いちお動くけど、もうちょっとちゃんとしたい |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これがよかった。。。 https://github.com/cppformat/cppformat