码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
POJ 2251宽搜、
因为这个题做了两次犯了两次不同的错误、 第一次用的dfs死活都超时 第二次把定义队列定义在了全局变量的位置,导致连WA了几次、最后找到原因的我真的想一巴掌拍死自己 1 #include<cstdio> 2 #include<cstring> 3 #include<queue> 4 using nam
分类:其他好文   时间:2016-02-06 18:25:37    阅读次数:306
<< 链式重载
1 #include <iostream> 2 3 using namespace std; 4 5 class Complex 6 { 7 private: 8 int a, b; 9 public: 10 Complex(int a, int b) :a(a), b(b) 11 {} 12 fr
分类:其他好文   时间:2016-02-06 18:23:11    阅读次数:146
运算符重载
1 #include <iostream> 2 3 using namespace std; 4 5 class Complex 6 { 7 private: 8 int a, b; 9 public: 10 Complex(int a, int b) :a(a), b(b) 11 {} 12 13
分类:其他好文   时间:2016-02-06 14:21:00    阅读次数:153
hdu 1848 Fibonacci again and again
这是尼姆博弈的变型; 还是博弈,可是这次要用Sg函数最后异或等于0后手赢 反之,先手赢 #include <iostream> #include <cstring> #include <cstdio> using namespace std; int f[100]={1,2,3,5}; int e[
分类:其他好文   时间:2016-02-06 10:24:17    阅读次数:195
C# 二叉查找树实现
BuildTree 代码1次CODE完,没有BUG. 在画图地方debug了很多次.第一次画这种图. 一开始用treeview显示,但发现不是很好看出树结构,于是自己动手画了出来. 1 using System; 2 using System.Collections.Generic; 3 using
分类:Windows程序   时间:2016-02-06 10:20:28    阅读次数:226
自己代码备份
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls;
分类:其他好文   时间:2016-02-06 01:44:55    阅读次数:261
[Redux] Passing the Store Down Implicitly via Context
We have to write a lot of boiler plate code to pass this chore down as a prop. But there is another way, using the advanced React feature called conte
分类:其他好文   时间:2016-02-06 01:43:25    阅读次数:302
归并排序
基本思想:将待排序元素分成大小大致相同的2个子集合, 分别对2个子集合进行排序,最终将排好序的子集合合并成为所要求的排好序的集合。 #include <iostream> using namespace std; int a[100],b[100]; /*参数的传递是将实参的值赋给形参。 *然而对于
分类:编程语言   时间:2016-02-05 22:19:32    阅读次数:224
asp.net 导出execl
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ClosedXML.Excel; using Syste
分类:Web程序   时间:2016-02-05 19:20:51    阅读次数:180
九度[1112]拦截导弹
1 # include<iostream> 2 # include<cstring> 3 # include<algorithm> 4 using namespace std; 5 int main(){ 6 int n=0; 7 int a[30]; 8 int b[30]; 9 int i=0,
分类:其他好文   时间:2016-02-05 19:17:15    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!