本文整理汇总了C++中System::Shutdown方法的典型用法代码示例。如果您正苦于以下问题:C++ System::Shutdown方法的具体用法?C++ System::Shutdown怎么用?C++ System::Shutdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System::Shutdown方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WinMain
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
{
System* system;
bool result;
// Create the system object.
system = new System;
if (!system)
{
return 0;
}
// Initialize and run the system object.
result = system->Initialize();
if (result)
{
system->Run();
}
// Shutdown and release the system object.
system->Shutdown();
delete system;
system = 0;
return 0;
}
示例2: _tmain
int _tmain(int argc, _TCHAR* argv[])
{
System* system = new System;
if(system->Initialize())
system->Run();
system->Shutdown();
delete system;
system = 0;
return 0;
}
示例3: main
int main()
{
System* engine = new System("3DS Loader and Renderer");
if (!engine->Initialize())
{
printf("Press any key to shutdown\n");
_getch();
return -1;
}
engine->Run();
engine->Shutdown();
return 0;
}