c++ 获取最大最小值
#include <iostream>
#include <cstdio>
#include <limits>
int main (int argc, char *argv[]) {
std::cout << std::numeric_limits<int>::min() << std::endl;
std::cout << std::numeric_limits<int>::max() << std::endl;
std::cout << std::numeric_limits<long long>::min() << std::endl;
std::cout << std::numeric_limits<long long>::max() << std::endl;
std::cout << std::numeric_limits<double>::min() << std::endl;
std::cout << std::numeric_limits<double>::max() << std::endl;
return 0;
return 0;
return 0;
}