¡@

Home 

c++ Programming Glossary: jl_size_t_specifier

Clean code to printf size_t in C++ (or: Nearest equivalent of C99's %z in C++)

http://stackoverflow.com/questions/1546789/clean-code-to-printf-size-t-in-c-or-nearest-equivalent-of-c99s-z-in-c

zd. You could create a macro #if defined _MSC_VER #define JL_SIZE_T_SPECIFIER Iu #define JL_SSIZE_T_SPECIFIER Id #define JL_PTRDIFF_T_SPECIFIER.. JL_PTRDIFF_T_SPECIFIER Id #elif defined __GNUC__ #define JL_SIZE_T_SPECIFIER zu #define JL_SSIZE_T_SPECIFIER zd #define JL_PTRDIFF_T_SPECIFIER.. #else TODO figure out which to use. #if NUMBITS 32 #define JL_SIZE_T_SPECIFIER something_unsigned #define JL_SSIZE_T_SPECIFIER something_signed..

Why do C++ streams use char instead of unsigned char?

http://stackoverflow.com/questions/277655/why-do-c-streams-use-char-instead-of-unsigned-char