Is there 'byte' data type in C++?

后端 未结 8 493
耶瑟儿~
耶瑟儿~ 2020-12-04 14:33

If exists is there header file to include?

This code give compilation error:

#include 

using namespace std;

int main()
{
    byte b         


        
相关标签:
8条回答
  • 2020-12-04 15:01

    No, but since C++11 there is [u]int8_t.

    0 讨论(0)
  • 2020-12-04 15:02

    if you are using windows, in WinDef.h you have:

    typedef unsigned char BYTE;
    
    0 讨论(0)
提交回复
热议问题