美文网首页C++
C++ practise hints 1

C++ practise hints 1

作者: ahuangliang | 来源:发表于2017-05-12 08:17 被阅读12次

Use int type for integer.

Keyword int has only three keys to press.

Int type is enough for common numeric range.

Use precise type, int8_t, int16_t, int32_t and int64_t when you feel int is not self-explained.

Only use unsigned type within bitwise operator.

Use literal suffiex 'U', 'UL' and 'ULL'.

相关文章

网友评论

    本文标题:C++ practise hints 1

    本文链接:https://www.haomeiwen.com/subject/jqcztxtx.html