String.Format alternative in C++

QuestionsString.Format alternative in C++
sethbeckerman5 Staff asked 14 years ago

I don't have much experience working with C++. Rather I have worked more in C# and so, I wanted to ask my question by relating to what I would have done in there. I have to generate a specific format of the string, which I have to pass to another function. In C#, I would have easily generated the string through the below simple code.

By generating such an above string, I should be able to pass this in . However, only accepts

I am on (not C++/CLI), and cannot use since it would include too much inclusion of all the files for a project which itself is very small. Something like looks useful to me, but does not accept as the , and parameters. Any suggestions how I can generate these formatted strings to pass to system in my program?


View on Stack Overflow