腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
错误:声明有冲突的‘typedef签名字符
int8_t
’
c++
、
c
我怎么解决这件事 fromfrom kernel.cpp:5:
int8
_t’ typedef signed int <em
浏览 10
提问于2021-09-12
得票数 1
回答已采纳
2
回答
为什么clang报告的类型与不兼容类型相同?
c++
、
clang
在编译时,我得到了一个错误:cast.cpp:29:12: error: assigning to '
int8_t
(*)[width]' fromincompatible type int8line = (
int8_t
(*)[width])(array); ^ ~~~但是在同一个平台(OS )上使用icpc进行编译,在
Linux
上使用g++/
浏览 3
提问于2017-06-04
得票数 2
3
回答
固定宽度整数类型std::uint8_t与std::
int8_t
、C++的实现
c++
、
c++11
、
integer
我使用的是固定宽度的整数类型std::
int8_t
和std::uint8_t,它们都包含在C++中,因为C++11 (header <cstdint>)。我使用gcc编译器进行c++编程(
Linux
,gcc --版本4.8.2)。#include <cstdint> //...cout << std::is_same<std::uint8_t,unsigned char>::value << std::e
浏览 1
提问于2014-08-10
得票数 1
回答已采纳
2
回答
C++铸造问题
c++
、
c++11
、
g++
、
clang
return static_cast<timeval>(_p);/usr/include/x86_64-
linux
-gnufrom 'const P' tostruct timeval/usr/include/x86_64-
linux
-gnu#include
浏览 5
提问于2013-11-06
得票数 0
回答已采纳
1
回答
C编程:当将2D数组作为const函数参数传递时,如何消除QAC警告?
c
、
multidimensional-array
、
qa-c
我希望将一个2D数组传递给一个函数,并且数组的值将不会在该函数中被修改。所以我正在考虑这样做:{ (void)TwoDimArrayConst(ai_Array); // Mess
浏览 1
提问于2019-02-18
得票数 1
1
回答
如何在数据区域执行代码(段保护)?
c++
、
c
、
assembly
、
linux-kernel
我在一个
linux
平台上工作,我使用g++与上面的程序一起将函数从代码区域复制到数据区域。如何更改数据段的保护以使我能够执行复制的函数?rbp; retq; retq; retq; retq; retq;")constexpr int maxCode=0x800;{ testCode();
浏览 1
提问于2015-01-18
得票数 2
回答已采纳
3
回答
C++结构数据成员
c++
、
linux
我在C++,
Linux
中工作,我遇到了如下问题:uint8_t a;char c;我的控制台上的输出是:Value of t.b >>6Value of t.d >> 对于
int8
浏览 1
提问于2010-11-18
得票数 5
回答已采纳
1
回答
如何在ARM中将返回的uint8_u转换为GoString?
c
、
go
、
cgo
cMyInt := C.int(10) fmt.Println("GoResult: " + goResult + "\n")文件cLogic.h
int8
_t *MyCFunction(char *myString, in
浏览 1
提问于2018-07-28
得票数 0
2
回答
将成员地址分配给结构中的其他成员
c
、
pointers
、
struct
struct Buffer {
int8_t
*storage; struct Buffer buffer;
int8
我已经测试过edit1,它编译并工作,就像指向my_context.my_storage和my_context.buffer.storage的指针一样,gcc (Debian 4.7.2-5) 4.7.2在
Linux
... 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/
浏览 3
提问于2015-05-11
得票数 3
回答已采纳
1
回答
定义
int8_t
的C库
c
从stdint.h发出的 #define
int8_t
int8_t
#define INT8_MAX (127) #define
int8_t
int8_t
做了什么或者定义了什么?
浏览 8
提问于2016-09-02
得票数 2
1
回答
结构化数组中的c++ arduino多个显示对象
c++
、
arrays
、
arduino
、
initialization
我对通过8通道i2c Mux运行的多个OLED显示器有声明:Adafruit_SSD1306 display2(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire2, OLED_RESET);Adafruit_SSD1306 display4(SCR
浏览 7
提问于2022-04-06
得票数 0
回答已采纳
1
回答
在C++中实现结构构造函数时出错
c
、
struct
、
constructor
ConnectionError_t detectedErrors; bool isRespShorted;
int8_t
conn2ShortedPins[2];
int8_t
usbShortedPins[
浏览 37
提问于2021-03-10
得票数 0
回答已采纳
1
回答
将二进制编码的无符号字符转换为整数
c++
、
binary
、
char
但是,当我用
int8_t
替换int时,它不再输出15。我不明白为什么。
int8_t
的大小不是8位吗,所以它应该和char匹配得很好,也就是8位?
浏览 3
提问于2017-08-10
得票数 2
回答已采纳
3
回答
获取qint64的最高有效字节
c++
、
qt
有没有一种简单的方法可以把它分成大小为
int8_t
的部分?为了清楚起见,如果我有一个我想要一个
int8_
t a2=[00001111]...
int8_t
a8=[11001100]
浏览 2
提问于2012-11-13
得票数 3
回答已采纳
2
回答
在使用int和
int8_t
时是否存在性能上的差异?
c
、
types
、
micro-optimization
我的主要问题是,对于执行时间,int和
int8_t
之间有什么区别吗? 在我正在研究的框架中,我经常看到一些参数在函数中被设置为
int8_t
的代码,因为“该特定参数不能超出-126,125范围”。在许多地方,
int8_t
用于通信协议,或者用于将一个包切割成多个字段,形成一个__attribute((packed)) struct。考虑到代码是在
Linux
上运行的,gcc使用glibc编译,并且内存或可移植性不是问题,我想知道这是否是一个好主意,性能方面的问题。但是,我不知道使用
int8_t
是否实际上是性能的
浏览 2
提问于2015-02-04
得票数 14
回答已采纳
4
回答
在C++中按位和介于8位整数和32位整数之间。
c++
、
c
、
gcc
、
int
、
bit-manipulation
如果我按位执行,在8位整数(
int8_t
)和32位整数(int)之间执行,结果是8位整数还是32位整数?#include <iostream>int main() int i=34; std::
浏览 3
提问于2011-12-08
得票数 2
回答已采纳
3
回答
被main()返回的值混淆
c++
、
macos
我已经在Xcode 10.0 (clang: AppleLLVMVersion10.0.0)中在macOS上编译和执行了这段代码,并且它正在返回255。另一方面,在v.15.8.6中的Windows上,它返回-1。有人能在macOS上解释一下这种行为吗?下面列出的代码。 return -1;
浏览 0
提问于2018-10-29
得票数 3
回答已采纳
3
回答
如何使二维数组的宽度不完全相同?
c++
、
arrays
、
pointers
、
multidimensional-array
、
arduino
4, 5, 8,2, 1, -2, -3}; 102, 103};
int8_t
(*arrayOf2DArrays[]
浏览 3
提问于2016-07-06
得票数 0
回答已采纳
1
回答
为什么我的派生类构造函数不工作?
c++
、
inheritance
、
arduino
我一直致力于创建一个Arduino库来控制触摸屏。我的库建立在预先存在的库的基础上,这些库是为与显示和触摸控制器接口而编写的。Display.cpp int newBacklightPin, int newRotation, int newBrightness) Adafr
浏览 0
提问于2015-03-23
得票数 1
6
回答
像int这样的类型的类型还能走多远?
c++
、
data-structures
int16_t EscalationDelayMinutes;typedef float AnalogValue;typedef
int8_t
DampingFactor;typedef
int8_t
SlavePort;typedef
int8_t
EventLevel; typedef
int8_t
浏览 0
提问于2011-06-20
得票数 17
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
CentOS6-Linux下安装OpenCV
Linux DNS 查询剖析 Linux 中国
Manjaro Linux 22.0 发布|Linux 中国
Alpine Linux 3.18 发布|Linux 中国
Linux基础(3)linux命令3
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券