码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
queue 优先队列
eg:uva136 1 #include<iostream> 2 #include<vector> 3 #include<queue> 4 #include<set> 5 using namespace std; 6 typedef long long LL; 7 const int coeff[3
分类:其他好文   时间:2016-02-03 00:20:05    阅读次数:197
引用的实质
是一个常指针 #include <iostream> #include <stdio.h> using namespace std; struct Teacher { bool sex; int age; }; void printa(Teacher *const p) { printf("prin
分类:其他好文   时间:2016-02-02 23:24:49    阅读次数:159
CodeForces 621A Wet Shark and Odd and Even
水题 #include<cstdio> #include<cstring> #include<cmath> #include<ctime> #include<vector> #include<algorithm> using namespace std; int n; long long a[100
分类:其他好文   时间:2016-02-02 23:23:04    阅读次数:473
CodeForces 621B Wet Shark and Bishops
记录一下每个对角线上有几个,然后就可以算了 #include<cstdio> #include<cstring> #include<cmath> #include<ctime> #include<vector> #include<algorithm> using namespace std; con
分类:其他好文   时间:2016-02-02 23:19:56    阅读次数:231
人物选择
1 using UnityEngine; 2 using System.Collections; 3 4 public class CharactorCreation : MonoBehaviour { 5 public GameObject[] prefabs; //在Inspector中赋值的数
分类:其他好文   时间:2016-02-02 23:19:12    阅读次数:256
C++:MEMSET的大坑三两事
之前写了一题费用流,竟然硬是在写SPFA时为DIS数组赋初始值用了MEMSET数组QAQ 调试了很久也没有弄明白自己是卡在那里了,,,感觉被自己蠢哭了QWQ 错误的姿势!! #include <cstring> #include <iostream> #include <cstdio> using
分类:编程语言   时间:2016-02-02 21:36:58    阅读次数:254
字符串匹配——Sunday算法(C++)
源代码: #include<iostream>#include<cstdio>#include<string>using namespace std;string s1,s2;int m,n,k(0);bool t(0);int main(){ getline(cin,s1); getline(ci
分类:编程语言   时间:2016-02-02 21:34:46    阅读次数:427
在CTime类中重载&lt;&lt;和&gt;&gt;
程序代码: #include <iostream> using namespace std; class CTime//时间类 { private: unsigned short int hour; //时 unsigned short int minute; //分 unsigned short
分类:其他好文   时间:2016-02-02 21:34:42    阅读次数:300
九度[1101]计算表达式
1 # include<cstdio> 2 # include<iostream> 3 # include<cstring> 4 using namespace std; 5 struct node{ 6 int value; 7 int next; 8 }a[500]; 9 char c[100]
分类:其他好文   时间:2016-02-02 21:33:54    阅读次数:358
医院建设 codevs 2577
Floyd+二叉树 #include<iostream>#include<cstdlib>#include<cstdio>#include<cstring>using namespace std;int a[101];int g[101][101];int main(){ int n,i,j,k,l
分类:其他好文   时间:2016-02-02 21:32:12    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!