خرید بک لینک

Vote count: -1

I am using c++ 11. I want to write a function that gets formatted string, and the args (don't know how many, needs to be variadic) and retus the full string.

for example:

format = "TimeStampRecord Type=%u Version=%u OptimizeBlockID=%u WriteBlockID=%u Timestamp=%lu"

INDEX_RECORD_TYPE_TIMESTAMP = 3;
FORAMT_VERSION = 1;
optimizeBlockId = 549;
writeBlockId = 4294967295;
timestamp = 1668;

and the retu value is a string that looks like:

"TimeStampRecord Type=3 Version=1 OptimizeBlockID=549 WriteBlockID=4294967295 Timestamp=1668"

any efficient way to do so?

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 20 ارديبهشت 1395 ساعت: 13:47

صفحه بندی