![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
learn c++
从前,有个傻子........
这个作者很懒,什么都没留下…
展开
-
C++内存管理机制
内存管理机制原创 2022-12-15 13:14:42 · 201 阅读 · 0 评论 -
c++读写文件
c++读写文件原创 2022-07-15 12:24:18 · 193 阅读 · 0 评论 -
io标准输出流
常用输出流原创 2022-07-14 20:40:27 · 132 阅读 · 0 评论 -
IO的基本知识点总结
io整理原创 2022-07-14 20:16:01 · 89 阅读 · 0 评论 -
c++标准程序库异常
标准库异常原创 2022-07-14 15:11:34 · 136 阅读 · 0 评论 -
异常在继承中的使用
异常的多态应用原创 2022-07-14 13:48:28 · 61 阅读 · 0 评论 -
异常的生命周期
异常生命周期原创 2022-07-14 13:13:42 · 97 阅读 · 0 评论 -
异常的栈解旋
解旋原创 2022-07-07 13:44:22 · 72 阅读 · 0 评论 -
异常的匹配
异常处理原创 2022-07-07 13:26:22 · 158 阅读 · 0 评论 -
异常基本语法
异常处理语法原创 2022-07-07 12:52:44 · 149 阅读 · 0 评论 -
const_cast类型转换
const_cast类型转换原创 2022-06-29 19:36:22 · 105 阅读 · 0 评论 -
动态类型转换
动态类型转换原创 2022-06-29 19:23:57 · 81 阅读 · 0 评论 -
c++类型转换
类型转换原创 2022-06-29 18:57:52 · 170 阅读 · 0 评论 -
复数类模板
模板类的实际使用原创 2022-06-26 14:46:58 · 149 阅读 · 0 评论 -
类模板的使用
类模板的使用原创 2022-06-26 14:33:29 · 542 阅读 · 0 评论 -
普通函数和模板函数
普通函数和模板函数原创 2022-06-26 14:22:19 · 67 阅读 · 0 评论 -
函数模板当函数参数
函数模板作为参数原创 2022-06-26 14:15:32 · 48 阅读 · 0 评论 -
函数模板的使用
模板函数的使用原创 2022-06-26 14:10:48 · 42 阅读 · 0 评论 -
函数指针作为函数参数(回调函数)
回调函数原创 2022-06-26 13:41:58 · 171 阅读 · 0 评论 -
抽象类在多继承中的应用
抽象类在多继承的缺陷转载 2022-06-26 13:29:03 · 130 阅读 · 0 评论 -
抽象类的应用
抽象类的使用原创 2022-06-26 13:25:08 · 70 阅读 · 0 评论 -
多态 父类指针与子类指针的步长不一致
多态时 子类与父类指针步长不一致原创 2022-06-26 13:08:44 · 49 阅读 · 0 评论 -
多态的实现原理
多态原理转载 2022-06-26 12:54:48 · 47 阅读 · 0 评论 -
重载重写重定义
重载重写重定义原创 2022-06-21 16:15:00 · 48 阅读 · 1 评论 -
虚析构函数
虚析构函数的使用原创 2022-06-21 15:52:49 · 36 阅读 · 0 评论 -
多态的使用
多态的使用原创 2022-06-21 15:42:05 · 70 阅读 · 0 评论 -
多继承的二义性
多继承的二义性原创 2022-06-21 14:43:53 · 51 阅读 · 0 评论 -
多继承示例
多继承原创 2022-06-21 14:39:20 · 51 阅读 · 0 评论 -
继承中同名变量及函数
继承原创 2022-06-21 14:34:04 · 99 阅读 · 0 评论 -
继承中的构造与析构
继承原创 2022-06-21 14:23:37 · 77 阅读 · 0 评论 -
类的兼容性原则
类继承原创 2022-06-21 14:17:41 · 156 阅读 · 0 评论 -
函数指针做函数参数
函数指针原创 2022-06-21 14:12:23 · 42 阅读 · 0 评论 -
类的继承方式
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <memory>#include <string>using namespace std;// pub pro pri// pub继承 pub pro...原创 2020-02-20 18:14:37 · 82 阅读 · 0 评论 -
继承的基本概念
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <memory>#include <string>using namespace std;class student{public: student(int id,string name){ this->m_id=id;...原创 2020-02-20 15:57:04 · 134 阅读 · 0 评论 -
类和类之间的关系
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <memory>using namespace std;class A{public: void funcA(){ cout<<"A: func()----"<<endl; } int m_a;};class ...原创 2020-02-20 15:09:53 · 56 阅读 · 0 评论 -
自定义智能指针
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <memory>using namespace std;//智能指针自动回收内存 不用delete或者显式调用析构函数class A{public: A(int a){ cout<<"this is A(int a)----"&...原创 2020-02-16 16:55:13 · 103 阅读 · 0 评论 -
不建议重载且和或的重载
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstring>#include <cmath>using namespace std;//不建议使用&&等符号 因为它不会发生短路 更改了基本性质class test{cpublic: test(int a){...原创 2020-02-16 16:05:40 · 104 阅读 · 0 评论 -
重载()以及new delete
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstring>#include <cmath>using namespace std;class sqr{public: sqr(int a){ this->m_a=a; } int operator()(int ...原创 2020-02-16 15:19:02 · 61 阅读 · 0 评论 -
类的等号操作符
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstring>#include <cmath>using namespace std;class student{public: student(int id,char* name){ cout<<"this i...原创 2020-02-15 18:10:16 · 415 阅读 · 0 评论 -
左移及右移操作符
#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstring>#include <cmath>using namespace std;class Complex{public: Complex(int a,int b){ this->m_a=a; this-&g...原创 2020-02-15 17:32:06 · 169 阅读 · 0 评论