C++

C++ practise hints 1

2017-05-12  本文已影响12人  ahuangliang

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'.

上一篇下一篇

猜你喜欢

热点阅读