码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
Codeforces Round #195 (Div. 2) A. Vasily the Bear and Triangle
水题,注意数据范围即可#include #include #include using namespace std;typedef pair Point;int main(){ int x,y; cin >> x >>y; Point a,b; if((x>0 && y > ...
分类:其他好文   时间:2014-06-16 10:47:47    阅读次数:226
关于std::bind的文章收集
C++11 FAQ中文版:std::function 和 std::bind2011-03-0216:25 by 陈良乔常规性地介绍了function和bind的使用,还不会用的同学可以看看bind原理图释 posted on 2014-04-29 12:49 xusd-nullnull同学对b.....
分类:其他好文   时间:2014-06-16 09:28:48    阅读次数:181
C++读取文本文件
Description在文件f1.dat中,提供了N(N是一个很大的数,程序中不需要用到)个正整数。请编程序,输出文件中前n(n 2 #include 3 using namespace std; 4 int main() 5 { 6 int a[10]={52,69,21,29,65,79...
分类:编程语言   时间:2014-06-16 08:48:46    阅读次数:257
HDU1166 线段树(最基础题)
1、写法一: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int numv[50005 2 #include 3 #include 4 5 using namespace std; 6 7 int nu...
分类:其他好文   时间:2014-06-12 11:36:43    阅读次数:316
寻找最大的数
#include#includeusing namespace std;char c[100],ans[100];int main(){ int len; cin>>len; while(len--) { cin>>c; int m; cin>>m; int len=strlen(c); int b...
分类:其他好文   时间:2014-06-12 07:40:23    阅读次数:215
第十五章 链表
/**数组与链表的区别:数组易随机访问,链表易插入和删除链表组成:储存数据元素的数据域,储存下一结点地址的指针域链表易于插入与删除lists 的用法?????????????????????*///建立一个图书链表#include#include using namespace std;struct...
分类:其他好文   时间:2014-06-12 06:44:48    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!