一、标准库中的数值极限
#include <limits>
auto max = numeric_limits< char> ::max();
二、断言
#include <assert.h>
assert((" 这里错误 ", 2 + 2 == 5));