C++ practise hints 1

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)