I was wondering what is the largest range any data type can hold and still be portable to another OS? I noticed MSVC++ compiler can compile __int64, which is the numbered range I need for this program I am working on. But it gives me this error:
Compiler Error:Code:__int64 count; . . cout << "\n Moves: \t\t\t\t" << count; . .
when I try to output it to cout. Here's what MSDN says about this:Code:error C2593: 'operator <<' is ambiguous
"The types __int8, __int16, and __int32 are synonyms for the ANSI types that have the same size, and are useful for writing portable code that behaves identically across multiple platforms. Note that the __int8 data type is synonymous with type char, __int16 is synonymous with type short, and __int32 is synonymous with type int. The __int64 type has no ANSI equivalent."
How can I display a counter big enough to hold at least 18 digits without making my own class or struct?