This file contains 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
// | |
// cstdlib.cpp | |
// CplusplusPractice | |
// | |
// Created by masai on 2015/05/19. | |
// Copyright (c) 2015年 masai. All rights reserved. | |
// | |
#include <iostream> | |
#include <cstdlib> | |
int main(int argc, const char * argv[]) { | |
std::cout << "HashValue(int8_t): " << std::numeric_limits<int8_t>::max() << std::endl; | |
std::cout << "HashValue(int16_t): " << std::numeric_limits<int16_t>::max() << std::endl; | |
std::cout << "HashValue(int32_t): " << std::numeric_limits<int32_t>::max() << std::endl; | |
std::cout << "HashValue(int64_t): " << std::numeric_limits<int64_t>::max() << std::endl; | |
std::cout << "HashValue(uint8_t): " << std::numeric_limits<uint8_t>::max() << std::endl; | |
std::cout << "HashValue(uint16_t): " << std::numeric_limits<uint16_t>::max() << std::endl; | |
std::cout << "HashValue(uint32_t): " << std::numeric_limits<uint32_t>::max() << std::endl; | |
std::cout << "HashValue(uint64_t): " << std::numeric_limits<uint64_t>::max() << std::endl; | |
return 0; | |
} |
参考サイト
C++日本語リファレンス
http://cpprefjp.github.io/reference/cstdint.html
0 件のコメント:
コメントを投稿