1.for a two dimension vector, we must assign at
least the first dimension of the vector2.each dimension of an inner vector can
be different3.if you do...
分类:
其他好文 时间:
2014-04-30 18:47:20
阅读次数:
549
stackstack模板类的定义在的头文件中;定义stack对象的范例如下;stack
s;stack s;stack的基本操作:s.top() ; //栈顶s.push(a) ; //元素a入栈s.pop();
//栈顶元素出栈s.empty(); //判断栈空,如果为空,则返回trues.s.....
分类:
其他好文 时间:
2014-04-29 20:55:15
阅读次数:
535
Mindjet.MindManager2012.v10.0在应用个别模板时提示“参数错误”,然后自动关闭。
解决办法:
如果是win7系统,可以进入C:\Users\(用户名)\AppData\Local\Mindjet\MindManager\10\Library\ENU\Templates,
可...
#include #include #include using namespace
std;int main(){ int n,m; cin >> n >> m; vector >
a(n,vector(m,0)); for(int i = 0; i > a[i][j]; ...
分类:
其他好文 时间:
2014-04-29 17:41:18
阅读次数:
425
#include #include #include #include using
namespace std;int main(){ int n,s; cin >> n >> s; vector a(n);
for(int i = 0 ; i > a[i]; sort...
分类:
其他好文 时间:
2014-04-29 16:42:39
阅读次数:
415
【广搜模板】#include #include #include #include using
namespace std;#define MAXX #define MAXYstruct Node{ int x,y; int step;};int n,m;
//边界int dx[4...
分类:
其他好文 时间:
2014-04-29 11:14:46
阅读次数:
334
组合数学、-排列组合数----sum求sum=sum*(m--)/i;----二维数组递推(打表)---原始公式(单个)数字太大,用分子分母约分-全排列模板-----生成全排列函数prev_permutation和next_permutation区别http://www.cnblogs.com/zh...
分类:
其他好文 时间:
2014-04-29 10:31:46
阅读次数:
408
在STL的queue 或者
vector、list等容器适配器或者容器中,会经常用到的函数就是push()或者push_back()函数,但是有一点需要明确的是:在使用这些函数对容器/适配器对象增加新元素的时候,实际上是对原有的元素对象复制重新新建了一个元素对象作为元素压入到容器/适配器对象中。例如...
分类:
其他好文 时间:
2014-04-29 09:43:46
阅读次数:
1521
由于n比较小,直接暴力解决#include #include #include #include
#include #includeusing namespace std;int main(){ int n,k; cin >> n
>> k; vector a(n); for...
分类:
其他好文 时间:
2014-04-29 09:18:46
阅读次数:
412
SMIL文件模板2014年4月4日17:28 来自为知笔记(Wiz)
分类:
其他好文 时间:
2014-04-29 09:15:47
阅读次数:
307