![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++上课笔记
「已注销」
这个作者很懒,什么都没留下…
展开
-
C语言实现多态
C语言实现多态下面展示一些 内联代码片。C语言实现多态类似于C++的虚函数都与函数指针有有一定关系#include <iostream>#include <stdio.h>using namespace std;typedef void(TIPS)(void);struct tip{ char from[64]; char to[64]; TIPS *tp; //抽象类};void tip1_func(void){ cout << "方法1原创 2021-04-10 15:02:30 · 170 阅读 · 0 评论 -
C++绑定器
C++绑定器和函数对象下面展示一些 内联代码片。#include <iostream>#include <vector> #include <functional>#include <algorithm>#include <ctime>using namespace std;/*绑定器和函数对象operator()1.C++ STL中的绑定器 bind1st : operator()的第一个形参变量绑定成一个确定的值b原创 2021-04-10 15:01:56 · 113 阅读 · 0 评论