📄 math.h
字号:
// This file is in the public domain.
// There are no restrictions on any sort of usage of this file.
#ifndef __SYSTEM_MATH_H__
#define __SYSTEM_MATH_H__
namespace System
{
class Math
{
public:
inline static int Max(int a, int b) { return a > b ? a : b; }
inline static int Min(int a, int b) { return a < b ? a : b; }
inline static int Abs(int a) { return a >= 0 ? a : -a; }
inline static int Sign(int a) { return a > 0 ? 1 : a < 0 ? -1 : 0; }
};
}
#endif // __SYSTEM_MATH_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -