c++中this关键字
来源:互联网 发布:centos安装wget 编辑:程序博客网 时间:2024/06/09 23:42
#include <iostream>using namespace std;class Dummy {public: bool isitme (Dummy& param) ;};bool Dummy::isitme (Dummy& param) { if (¶m == this) { return true; } else { return false; }}int main(int argc, char const *argv[]){ Dummy a; Dummy *b = &a; if (b -> isitme(a)) { cout << "yes, &a is b\n"; } return 0;}
阅读全文
0 0
- C++this关键字
- C++this 关键字
- java中this关键字
- Java中this关键字
- java中this关键字
- java中this关键字
- java中this关键字
- SCALA中this关键字
- java中this关键字
- Java中this关键字
- JavaScript中this关键字
- java中This关键字
- java中this关键字
- java中this关键字
- Java中this关键字
- Java中this关键字
- java中this关键字
- Java中this关键字
- 解决浮点型运算精度丢失问题
- 依赖引起错误
- redis进程占用CPU很高-达到100
- LeetCode 22 Generate Parentheses
- day05-Linux基础命令
- c++中this关键字
- 两个dateTimePicker控件之间的差值
- NKOJ P1206 银河英雄传说【NOI2002 Day1 T1】
- 《DOS命令一日通》第十三章 抗病毒保护
- leetcode 52
- HTML5 全局属性和其他
- 文章标题
- c++ 异常学习(一)
- 合并两个有序单链表(Java)