C++中 打印size_t 和 ssize_t
2012-06-29 20:57:39 来源:WEB开发网核心提示:#Use the z modifier:size_t x;ssize_t y;printf("%zu\n", x); // prints as unsigned decimalprintf("%zx\n", x); // prints as hexprintf("%
#Use the z modifier: size_t x; ssize_t y; printf("%zu\n", x); // prints as unsigned decimal printf("%zx\n", x); // prints as hex printf("%zd\n", y); // prints as signed decimal
赞助商链接