global.cpp

来自「电梯仿真系统的实现」· C++ 代码 · 共 42 行

CPP
42
字号
//## begin module%1.3%.codegen_version preserve=yes
//   Read the documentation to learn more about C++ code generator
//   versioning.
//## end module%1.3%.codegen_version

//## begin module%3C15B45F03CA.cm preserve=no
//	  %X% %Q% %Z% %W%
//## end module%3C15B45F03CA.cm

//## begin module%3C15B45F03CA.cp preserve=no
//## end module%3C15B45F03CA.cp

//## Module: Global%3C15B45F03CA; Package body
//## Subsystem: <Top Level>
//## Source file: D:\Program\OOP\Elevators\SourceCode\Global.cpp

//## begin module%3C15B45F03CA.additionalIncludes preserve=no
//## end module%3C15B45F03CA.additionalIncludes

//## begin module%3C15B45F03CA.includes preserve=yes
#include "stdafx.h"
//## end module%3C15B45F03CA.includes

// Global
#include "Global.h"
//## begin module%3C15B45F03CA.declarations preserve=no
//## end module%3C15B45F03CA.declarations

//## begin module%3C15B45F03CA.additionalDeclarations preserve=yes


int Random(int Max,int Min=1)
{
	int iRand = Min + rand()%(Max-Min+1);
	return iRand;
}
//## end module%3C15B45F03CA.additionalDeclarations


//## begin module%3C15B45F03CA.epilog preserve=yes
//## end module%3C15B45F03CA.epilog

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?