原创 STL_Algorithm6--find, find_if, sort, binary_search
#include<iostream> #include<algorithm> #include<vector> #include<iterator> using std::cout; using std::endl; bool
原创 STL_Algorithm7: swap
#include<iostream> #include<algorithm> #include<iterator> using std::cout; using std::endl; int main() { const
原创 STL_Algorithm4: Replace, replace_if, replace copy, replace_copy_if
// replace.cpp : Defines the entry point for the console application. // #include <iostream> #include <algorithm> #i
原创 STL_Algorithm8: copy_backward, merge, unique, reverse
#include<iostream> #include<algorithm> #include<vector> #include<iterator> using std::cout; using std::endl; int
原创 STL Container7: muiltiset
// Multiset_Process.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iost
原创 STL Container3: Deque
// Deque_Item_Process.cpp : Defines the entry point for the console application. // #include <iostream> #include <
原创 STL_Algorithm10: Set--集合操作
#include<iostream> #include<algorithm> #include<iterator> using std::cout; using std::endl; int main() { const
原创 STL Container1: Vector
// Testing Standbard Library vector class template // element-maninpulation functions. #include <iostream> using
原创 RTTI
RTTI(Run-Time Type Identification,通過運行時類型識別)程序能夠使用基類的指針或引用來檢查這些指針或引用所指的對象的實際派生類型。 RTTI提供了以下兩個非常有用的操作符: (1)typeid操作符,
原创 STL Container6: Set
// Set_Process.cpp : Defines the entry point for the console application. // #include <iostream> using std::cou