小编Les*_*ieg的帖子

C++ struct数据成员

我在C++,Linux工作,我遇到的问题如下:

struct testing{
uint8_t a;
uint16_t b;
char c;
int8_t d;

};

testing t;

t.a = 1;
t.b = 6;
t.c = 'c';
t.d = 4;
cout << "Value of t.a >>" << t.a << endl;
cout << "Value of t.b >>" << t.b << endl;
cout << "Value of t.c >>" << t.c << endl;
cout << "Value of t.d >>" << t.d << endl;
Run Code Online (Sandbox Code Playgroud)

我的控制台上的输出是:

Value of t.a >>
Value of t.b >>6
Value of t.c >>c
Value …
Run Code Online (Sandbox Code Playgroud)

c++ linux

5
推荐指数
1
解决办法
496
查看次数

标签 统计

c++ ×1

linux ×1