本文整理汇总了C++中stringc::sprintf方法的典型用法代码示例。如果您正苦于以下问题:C++ stringc::sprintf方法的具体用法?C++ stringc::sprintf怎么用?C++ stringc::sprintf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stringc
的用法示例。
在下文中一共展示了stringc::sprintf方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getSingletonsTableAsPrintableString
__MY_CORE_LIB_API__ const c8* getSingletonsTableAsPrintableString()
{
_PrintableString.sprintf(
"&Device = %p, Device = %p\n"
"&PluginManager = %p, PluginManager = %p\n"
"&Profiler = %p, Profiler = %p\n"
"&Logger = %p, Logger = %p\n"
"&FileSystem = %p, FileSystem = %p\n"
"&InputDispatcher = %p, InputDispatcher = %p\n"
"&CursorControl = %p, CursorControl = %p\n"
"&TimerMain = %p, TimerMain = %p\n"
"&TimerSecond = %p, TimerSecond = %p\n"
"&MemStatus = %p, MemStatus = %p\n"
"&SoundDriver = %p, SoundDriver = %p\n"
"&CoreScriptManager = %p, CoreScriptManager = %p\n"
"&ScriptManager = %p, ScriptManager = %p\n"
"&DynamicManager = %p, DynamicManager = %p\n"
"&SceneManager = %p, SceneManager = %p\n"
"&PathFinderManager = %p, PathFinderManager = %p\n"
"&LightGridManager = %p, LightGridManager = %p\n"
"&MaterialsManager = %p, MaterialsManager = %p\n"
"&CullingSystem = %p, CullingSystem = %p\n"
"&ImageLibrary = %p, ImageLibrary = %p\n"
"&VideoDriver = %p, VideoDriver = %p\n"
"&GameManager = %p, GameManager = %p\n"
"&GameAIModule = %p, GameAIModule = %p\n"
"&GameEventsDispatcher = %p, GameEventsDispatcher = %p\n"
"&GameTasksManager = %p, GameTasksManager = %p\n"
"&ResourceManager = %p, ResourceManager = %p",
&g_SingletonsTable.Ptrs.Device, g_SingletonsTable.Ptrs.Device,
&g_SingletonsTable.Ptrs.PluginManager, g_SingletonsTable.Ptrs.PluginManager,
&g_SingletonsTable.Ptrs.Profiler, g_SingletonsTable.Ptrs.Profiler,
&g_SingletonsTable.Ptrs.Logger, g_SingletonsTable.Ptrs.Logger,
&g_SingletonsTable.Ptrs.FileSystem, g_SingletonsTable.Ptrs.FileSystem,
&g_SingletonsTable.Ptrs.InputDispatcher, g_SingletonsTable.Ptrs.InputDispatcher,
&g_SingletonsTable.Ptrs.CursorControl, g_SingletonsTable.Ptrs.CursorControl,
&g_SingletonsTable.Ptrs.TimerMain, g_SingletonsTable.Ptrs.TimerMain,
&g_SingletonsTable.Ptrs.TimerSecond, g_SingletonsTable.Ptrs.TimerSecond,
&g_SingletonsTable.Ptrs.MemStatus, g_SingletonsTable.Ptrs.MemStatus,
&g_SingletonsTable.Ptrs.SoundDriver, g_SingletonsTable.Ptrs.SoundDriver,
&g_SingletonsTable.Ptrs.CoreScriptManager, g_SingletonsTable.Ptrs.CoreScriptManager,
&g_SingletonsTable.Ptrs.ScriptManager, g_SingletonsTable.Ptrs.ScriptManager,
&g_SingletonsTable.Ptrs.DynamicManager, g_SingletonsTable.Ptrs.DynamicManager,
&g_SingletonsTable.Ptrs.SceneManager, g_SingletonsTable.Ptrs.SceneManager,
&g_SingletonsTable.Ptrs.PathFinderManager, g_SingletonsTable.Ptrs.PathFinderManager,
&g_SingletonsTable.Ptrs.LightGridManager, g_SingletonsTable.Ptrs.LightGridManager,
&g_SingletonsTable.Ptrs.MaterialsManager, g_SingletonsTable.Ptrs.MaterialsManager,
&g_SingletonsTable.Ptrs.CullingSystem, g_SingletonsTable.Ptrs.CullingSystem,
&g_SingletonsTable.Ptrs.ImageLibrary, g_SingletonsTable.Ptrs.ImageLibrary,
&g_SingletonsTable.Ptrs.VideoDriver, g_SingletonsTable.Ptrs.VideoDriver,
&g_SingletonsTable.Ptrs.GameManager, g_SingletonsTable.Ptrs.GameManager,
&g_SingletonsTable.Ptrs.GameAIModule, g_SingletonsTable.Ptrs.GameAIModule,
&g_SingletonsTable.Ptrs.GameEventsDispatcher, g_SingletonsTable.Ptrs.GameEventsDispatcher,
&g_SingletonsTable.Ptrs.GameTasksManager, g_SingletonsTable.Ptrs.GameTasksManager,
&g_SingletonsTable.Ptrs.ResourceManager, g_SingletonsTable.Ptrs.ResourceManager);
return _PrintableString.c_str();
}