1 G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_deque.h 完整列表 2 /* 3 * 4 * Copyright (c) 1994 5 * Hewlett-Packard Company 6 * 7 * P...
分类:
其他好文 时间:
2014-09-10 15:37:01
阅读次数:
214
1 G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_map.h 完整列表 2 /* 3 * 4 * Copyright (c) 1994 5 * Hewlett-Packard Company 6 * 7 * Permission...
分类:
其他好文 时间:
2014-09-10 15:28:50
阅读次数:
258
1 G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_vector.h 完整列表 2 /* 3 * 4 * Copyright (c) 1994 5 * Hewlett-Packard Company 6 * 7 * Permiss...
分类:
其他好文 时间:
2014-09-10 15:26:00
阅读次数:
258
Description
10-20-30
A simple solitaire card game called 10-20-30 uses a standard deck of 52 playing cards in which suit is irrelevant. The value of a face card (king, queen,...
分类:
其他好文 时间:
2014-09-09 20:08:59
阅读次数:
327
这是一个简易的Dijkstra算法的优化实现,利用了堆,这里使用C++中的优先级队列。利用STL内置的堆实现只是优化的第一步,更进一步的优化包括使用Fibonacci堆等更高级数据结构。算法中,使用邻接表作为存储图的数据结构,利用一个int数组d保存过程中及最后得到的最短路长度,再自定义一个pair...
分类:
编程语言 时间:
2014-09-09 19:58:49
阅读次数:
285
内建类型
C++数据类型包括:
1)内置的基本数据类型,如整型、浮点型、布尔型等,均有一个关键字对应,如int,float,bool
2)C++ STL(标准库)引入了一些扩展类型,有时候也归为基本类型,比如字符串类型(string),复数类型(complex),向量(vector)等。
3)其他,即用户自定义类型,也叫抽象数据类型(ADT),即用户通过class,struct,enum定...
分类:
编程语言 时间:
2014-09-09 18:28:39
阅读次数:
249
原文地址:http://blog.csdn.net/qq844352155/article/details/39136169
function template
std::copy_if
template
OutputIterator copy_if (InputIterator first, InputIterator last,
...
分类:
其他好文 时间:
2014-09-09 13:21:08
阅读次数:
191
2014-08-0416:33:57(1) map map定义形式 map map_name; map的基本操作函数:C++ Maps是一种关联式容器,包含“关键字/值”对 begin() 返回指向map头部的迭代器 clear() 删除所有元素 count() 返回指定元素出现的次数 e...
分类:
编程语言 时间:
2014-09-09 11:40:28
阅读次数:
239
4989Summary既然用C++了就偷懒直接用STL大法了#include#include#includeusing namespace std;int main(){ int n; while (cin >> n) { vector vec,temp; ...
分类:
其他好文 时间:
2014-09-09 10:57:28
阅读次数:
248