
STL
文章平均质量分 59
sophia_sy
这个作者很懒,什么都没留下…
展开
-
c++ STL 第0章习题
// 0.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"template inline T sum_all(T* first, T* last){ T sum; for(sum = 0; first != last; ++first) { sum += *first; } return (sum);}template int sum_all(int*原创 2007-01-13 16:40:00 · 984 阅读 · 0 评论 -
utility
#ifndef UTILITY_#define UTILTIY_#include namespace std{ //TEMPLATE STURCT pair template struct pair { typedef T1 first_type; typedef T2 second_type; pair() : first(T1()), second(T2()) {} pair(co原创 2007-01-13 23:54:00 · 749 阅读 · 0 评论