Last active
August 12, 2017 09:16
-
-
Save j2doll/a48232b453bc00f09dfcc044ca4fc961 to your computer and use it in GitHub Desktop.
min max value using STL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MinMax.cpp | |
// min/max value of C++ | |
// code from : http://www.cppreference.com/wiki/data_types | |
#include <limits> | |
std::cout << "Maximum short value: " << std::numeric_limits<short>::max() << std::endl; | |
std::cout << "Minimum short value: " << std::numeric_limits<short>::min() << std::endl; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment