demo.cpp
来自「使用stl技术,(还没看,是听说的)」· C++ 代码 · 共 34 行
CPP
34 行
/** @file Demo.cpp
@brief Contains WinMain().
*/
// Includes
#include "Demo.h"
// Simple Win32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
// WinMain()
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
{
// Create application object
Application app;
// Attempt
try
{
// Run the program
app.go();
}
// Failure
catch(Ogre::Exception& e)
{
// Output Error
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL );
}
// Exit
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?