C++ 收集

一、标准库中的数值极限

#include <limits>

auto max =  numeric_limits< char> ::max();

 

二、断言

#include <assert.h>

 assert((" 这里错误 ", 2 + 2 == 5));

posted @ 2024-03-26 15:12  雾枫  阅读(19)  评论(0)    收藏  举报