指针
0 人感兴趣 · 26 次引用
- 最新
- 推荐
constchar* 类型的实参与 char* 类型的形参不兼容
在C++中,const char* 类型的指针与 char* 类型的指针之间是不兼容的。const char* 类型的指针表示指向字符串常量的指针,而 char* 类型的指针表示指向字符数组或字符串的指针。由于 const char* 是指向常量的指针,不能修改指向的数据,而 char* 是指向非常
改变 this 指向的方法
使用call() 方法: call() 方法可以改变函数的this指向,它的第一个参数是要绑定的this值,后面的参数是传递给函数的参数列表。例如:

【指针内功修炼】函数指针 + 函数指针数组 + 回调函数(二)
函数指针,顾名思义,就是指向函数的指针,函数 有没有地址呢?


关于 C 语言结构体(struct),你不知道的用法?(初阶篇)
介绍C语言中结构体的一些初阶内容,让大家了解一下结构体是如何去使用的!


ABAP 一组关键字 IS BOUND, IS NOT INITIAL 和 IS ASSIGNED 的用法辨析
ABAP里的IS BOUND, IS NOT INITIAL和IS ASSIGNED这组关键字,如果平时不留心,很容易理解地似是而非。本文我们就来说一说它们的区别。
【精通内核】汇编下的 C 语言
本文讲解结构体、指针和数组原理,并分析汇编下的C语言。Liunx内核和JNI都是通过C编写,这部分主要讲解通过操作指针和内存执行程序的思想,对后续Hotspot和java的api的理解有很重要的作用。


精心总结 C++ 智能指针用法详解 (完整版) 附带视频讲解
前言:为什么要使用智能指针:我们知道c++的内存管理是让很多人头疼的事,当我们写一个new语句时,一般就会立即把delete语句直接也写了,但是我们不能避免程序还未执行到delete时就跳转了或者在函数中没有执行到最后的delete语句就返回了,如果我们不在每一个
