腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
const
int
*
vs
.类型定义
int
*
IntPtr
为什么我必须将
int
*更改为
typedef
int
*
IntPtr
才能进行编译?T&)) }{ B() : a(){ } void foo(<
浏览 0
提问于2012-08-02
得票数 3
回答已采纳
6
回答
类型定义函数和常量指针的容器
、
、
、
下面这行代码可以很好地编译并运行:以下两行没有:list<
const
IntPtr
>
int
_pointers; // (2)list<
int
*
const
> <em
浏览 0
提问于2010-01-28
得票数 9
回答已采纳
3
回答
const
*
const
的预处理器速记
、
、
、
我有一个很大的代码,并且我的许多函数都接受定义一个像这样的预处理器速记会不会是可怕的滥用_CsC或_CsCsC#define _CsC
const
*
const
和#define _CsCsC
const
*
const
浏览 0
提问于2012-09-12
得票数 1
回答已采纳
2
回答
在调用本机函数时,最后一个参数出现损坏。
、
、
、
我在本机库中有以下函数原型:
typedef
struct AnotherNativeObj * AnotherNativevoid * secondOpaque, void * thirdOpaque,
const
char * secondS
浏览 4
提问于2013-10-13
得票数 0
回答已采纳
1
回答
类型定义函数
int
*
intptr
或类型定义函数
int
*
intptr
;
、
、
我本能地找到了在指针声明中放置空格的位置:
int
* foo() { return 0; }// <-- wrong
int
* Y = 321; // <-- wrong
浏览 8
提问于2014-02-21
得票数 0
1
回答
Labview类型转换为C#
、
有一个名为FCreate (Labview函数)的labview函数,其定义为:如果此函数创建文件,则生成的文件描述符存储在fdp引用的地址中。
浏览 2
提问于2011-10-07
得票数 0
回答已采纳
2
回答
const
TypedeffedIntPointer不等于
const
int
*
我有以下C++代码:
const
int
* cip = new
int
;我用Visual 2008编译它,并得到以下错误: 很明显,我对打字的理解并不是我应该理解的。我有一个函数返回一个
const</
浏览 6
提问于2010-05-06
得票数 3
回答已采纳
1
回答
如何在没有标准库(libc)的情况下打印到控制台(Linux)
、
、
#include <unistd.h>
const
char msg[] = "Hello world"; write( STDOUT_FILENO
浏览 2
提问于2017-08-15
得票数 3
1
回答
C语言中uintptr_t的自定义实现
、
我正在用C做一个内核,我想知道如何在C中定制uintptr_t的实现。
浏览 5
提问于2022-04-12
得票数 -3
1
回答
T*和
const
T*
、
、
、
typedef
const
int
* constintptr;constintptr cp = p;
const
constintptr似乎这种行为的解释是,
int
*可以转换为
const
* prvalue,但不兼容引用。(如果我错了,请纠正我)。我看到这是可取的行为(或者我们可以颠覆
const
),这种行为的可取性并不是这个问题的
浏览 1
提问于2014-01-04
得票数 4
回答已采纳
6
回答
类型定义函数指针常量奇怪
、
、
请考虑以下代码:struct Person {};
const
PersonRef person = NULL但
const
关键字不应使指针为常量。有什么想法吗?
浏览 1
提问于2011-12-14
得票数 28
回答已采纳
2
回答
在unordered_set of shared_ptr中找到一个值
、
、
我想在unordered_set中找到一个值,但失败了:s.insert(std::make_shared<
int
>(42)); template <> str
浏览 3
提问于2015-09-16
得票数 4
回答已采纳
2
回答
这是什么类型的类型定义?
、
以下是示例代码上面的代码是什么意思?
INT
是
int
的别名。代码的其余部分发生了什么?
浏览 1
提问于2019-07-19
得票数 1
2
回答
如何将void *(指向double或
int
)从C传递到C#
、
、
、
、
我在C中有一般的回调类型:{ } 在C#代码中,我设置了这种委托:
浏览 5
提问于2016-04-14
得票数 1
回答已采纳
2
回答
如何将模板数组作为函数中的参数?
我真的很困惑,我应该在哪里写"
const
“来表示数组没有被修改。此外,代码包含2个荷兰语,"grootste“表示”最大“,"grootte”仅表示“大小”。PS: max=最大值#include <iostream>T grootste(T
const
[],
int
);
int
grootte(
con
浏览 1
提问于2019-01-22
得票数 1
回答已采纳
2
回答
C#调用DLL C时出错
、
、
IntPtr
p0,
int
p2,
IntPtr
p5,
IntPtr
p7,
IntPt
浏览 0
提问于2013-03-30
得票数 0
3
回答
QSet<func pointer>没有编译,作者: gcc
、
、
、
、
typedef
intptr
_t (*UikHook)(
intptr
_t);
typedef
struct QSet<UikHook>* qsetSubscribers;UikHook>(); error: no matching function for call to ‘qHash(long
int
(*
const
&)(long
int</
浏览 28
提问于2017-01-25
得票数 1
2
回答
为什么
const
在这个模板结构中丢失了?
、
、
众所周知,以下函数指针有不同的类型:void foo_
const
_
int
_ref(
const
int
&); !be different");template<typename T>struct ref_
vs
_
const
浏览 5
提问于2017-12-14
得票数 9
回答已采纳
2
回答
在一组shared_ptr中找到一个值
、
、
、
我有一组shared_ptr,希望在其中找到一个值: bool operator() (
const
IntPtr
& a,
const
IntPtr
& b) { }std::set<
IntPtr
, Compare> s; auto x =std
浏览 0
提问于2015-09-16
得票数 11
回答已采纳
2
回答
将嵌套结构从C#封送到C++
、
、
、
在C++中有以下类型:
const
char* keyHolderName; key* keys;
const
char* keyName;} key;
int
crea
浏览 2
提问于2015-03-18
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券