宏#pragma once的用法及其与#ifndef的区别
https://www.cnblogs.com/qiang-upc/p/11407364.html
extern的理解
https://www.cnblogs.com/nzbbody/p/3574271.html
虚函数的用法
https://www.cnblogs.com/weiyouqing/p/7544988.html
虚函数和纯虚函数的用法和区别
https://www.cnblogs.com/inception6-lxc/p/8597326.html
快速排序
https://www.runoob.com/w3cnote/quick-sort.html
volatile关键字详解
https://www.cnblogs.com/yc_sunniwell/archive/2010/07/14/1777432.html
在系统的信号处理程序中可能会使用volatile关键字修饰全局变量,告诉编译器,不要缓存该变量,每次使用是都要从内存中读取。(见《CSAPP》P536)
stl::multimap的用法
http://c.biancheng.net/view/518.html
另:
#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
cout << "kaishi"<<endl;
unordered_map<int,int*> pos;
int a = 1;
int b = 2;
int c = 3;
pos[a] = &a;
pos[b] = &b;
pos[c] = &c;
cout << pos[4] << endl;
unordered_map<int, int> pos1;
pos1[a] = 1;
pos1[b] = 2;
pos1[c] = 3;
cout << pos1[4]<<endl;
system("pause");
return 0;
}
输出结果为: