cppint64min.cpp

davshao, 11/28/2012 10:41 PM

Download (384 Bytes)

 
1
#ifdef USECSTDINT
2
#include <cstdint>
3
#else
4
#include <stdint.h>
5
#endif
6
#include <iostream>
7

    
8
class TwoTypes {
9
public:
10
    void printVal(double val) {
11
        std::cout << "double val = " << val << "\n";
12
    } 
13
    
14
    void printVal(int64_t val) {
15
        std::cout << "int64_t val = " << val << "\n";
16
    } 
17

    
18
};
19

    
20
int main() {
21
    TwoTypes t;
22
    t.printVal(INT64_MIN);
23
    return 0;
24
}