libtcod - C++: How To Use %i in Function? -


i have little question, possible use %i in function? here need do. have function callback:

engine.gui->menu.additem(menu::agility,"agility (+1 defense)"); 

and want use in way:

engine.gui->menu.additem(menu::agility,"agility (%i defense)",engine.level); 

how need implement that, or might not possible? tried best something, didn't managed it. :( reason want player avenges next level, engine.level counts gets ++, player level ups can more agility in different levels, , leveling can informed how many agility get.

most boost::format (http://www.boost.org/doc/libs/1_54_0/libs/format/) should want. won't exact syntax should close.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -