摘要:
对象模型 - this 通过一个对象来调用一个函数,那么对象的地址就是this 虚函数的模板方法使用方式 template method 示例代码: #pragma#ifndef __THIS_TEMPLATE_MODEL__#define __THIS_TEMPLATE_MODEL__class 阅读全文
posted @ 2024-04-15 18:04
俊king
阅读(19)
评论(0)
推荐(0)
摘要:
Reference 三种变量 值 -> value 指针 -> pointer 引用 -> reference &取址符 示例代码: #include <iostream>using namespace std;int main() { int x = 0; int* p = &x; // in 阅读全文
posted @ 2024-04-15 18:04
俊king
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号