1 #include <iostream> 2 #include <limits> 3 using namespace std; 4 5 void main() 6 { 7 cout << numeric_limits<int>::max() << endl; 8 cout << numeric_limits<int>::min() << endl; 9 cin.get(); 10 }
1 #include <iostream> 2 #include <limits> 3 using namespace std; 4 5 void main() 6 { 7 cout << numeric_limits<int>::max() << endl; 8 cout << numeric_limits<int>::min() << endl; 9 cin.get(); 10 }
转载于:https://www.cnblogs.com/xiaochi/p/8568292.html