“Uint32”, “int16” and the like; are they standard c++?

前端 未结 6 826
悲&欢浪女
悲&欢浪女 2021-01-03 19:14

I\'m quite new to c++, but I\'ve got the hang of the fundamentals. I\'ve come across the use of \"Uint32\" (in various capitalizations) and similar data types when reading o

6条回答
  •  萌比男神i
    2021-01-03 19:41

    The main reason for using them is that you then don't have to worry about any possible problems arising when switching between 64bit and 32bit OS.

    Also if you are interfacing to any legacy code that you new was destined for 32bit or even 16bit then it avoids potential problems there as well.

提交回复
热议问题