![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++Study
jsjgogogo
这个作者很懒,什么都没留下…
展开
-
C++ 重载 重定义 与重写
重载:相同行为方法的不同实现 重定义:基类与派生类之间的 “重载” 重写:虚函数+重定义原创 2021-06-14 18:44:44 · 668 阅读 · 0 评论 -
C/C++ int a[]和int (*a)[]的区别
int *a[]; a与[]先结合,a为数组,数组element type =int *int (*a)[]; a与* 先结合,a为指针,指向数组,同int a[];link=https://www.jianshu.com/p/548ff8e1b243转载 2021-04-07 17:39:28 · 707 阅读 · 0 评论 -
c++:STL deque 原理
http://c.biancheng.net/view/6908.htmlhttps://blog.csdn.net/yl_puyu/article/details/103361874转载 2021-03-29 20:14:07 · 60 阅读 · 0 评论 -
C++:默认参数,模板,map源码分析
map是STL的一个标准关联容器,其element为键值对(pair<key,value>);主要通过key进行访问value,而map的key 是strict weaking ordering 的 ;在学习map时想要构建一个从小到大排序的map,如下:1.默认参数--恰如其名#include<iostream>int func(int a,int b,int c=3){ std:: cout<<a<<"<<.原创 2021-03-25 21:42:20 · 894 阅读 · 0 评论 -
C++:cout<<自定义类型输出
1.自定义类型struct Student{ int id; string name; Student(); Student(int ID,string Name){ id=ID; name=Name; } friend ostream & operator << (ostream &out,const Student &s) { out<<s.id原创 2021-03-21 16:35:36 · 2833 阅读 · 0 评论