Show: Object Pascal C++
Display Preferences

Extended Types Formatted I/O (C++)

From Appmethod Topics
Jump to: navigation, search

Go Up to Functions Index


The following table shows new format specifiers implemented in Appmethod C++ for the printf and scanf family of functions. This implementation allows the input and output of 64-bit integers and provides greater I/O flexibility for other types.

Format Character Functionality

%Ld

__int64

%I8d

8-bit wide integer (char)

%I16d

16-bit wide integer (short)

%I32d

32-bit wide integer (long)

%I64d

64-bit wide integer (__int64)



Note that the above table uses the %d format as an example. The I8, I16, I32, I64 prefixes can be used with the d, i, o, x, X formats, as well as the new L prefix previously allowed only on float to specify long double type.

See Also

Personal tools
In other languages