Wednesday, 7 August 2013

How in c++ create message similar to snprintf and just change value in message?

How in c++ create message similar to snprintf and just change value in
message?

How can I create a message similar to snprintf ( where I can have generic
text with %d for integer and just when I nned to show in sprintf connect
with paramter), to avoid concatenation? (I need to create result string
something like You need more %d coins, at the moment I am doing on bad way
to concatenate and return value 'You need more' + some_stringified_value +
'coins')

No comments:

Post a Comment