我想将 var 转换为 sprintf 的格式,但是怎么做!
char s[100];
int d = 4;
sprintf(s, "%4s", "abc"); // i want the var 'd' replace '4', but how.
cout << s;
我想将 var 转换为 sprintf 的格式,但是怎么做!
char s[100];
int d = 4;
sprintf(s, "%4s", "abc"); // i want the var 'd' replace '4', but how.
cout << s;