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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -