码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
智能指针版本链表
class Node; using NodePtr = std::unique_ptr<Node>; class Node { public: int value; NodePtr next = nullptr; explicit Node(int value_ = 0): value(value_
分类:其他好文   时间:2016-02-13 15:46:17    阅读次数:164
计算器的简单编写,熟悉访问器,重载
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
分类:其他好文   时间:2016-02-13 12:16:04    阅读次数:174
带花树
带花树模板 1 #include<queue> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #define N 605 6 #define M 200010 7 using namespace std; 8 int n
分类:其他好文   时间:2016-02-13 11:06:31    阅读次数:201
汉若塔问题(递归)
1 #include <iostream> 2 #include <stdio.h> 3 using namespace std; 4 5 static int step = 0; 6 void move ( char sour, char dest ) 7 { 8 printf ( "move f
分类:其他好文   时间:2016-02-12 23:21:39    阅读次数:485
HDU 1026
#include<iostream> #include<string> #include<string.h> #include<math.h> #include<cstdio> #include<stack> #include<queue> #define maxn 101 using namesp
分类:其他好文   时间:2016-02-12 22:10:38    阅读次数:174
new对象数组时的内存布局
[cpp] view plain copy #include <iostream> #include <limits> using namespace std; #define SAFE_DELETE(x) \ { \ if (NULL != (x)) \ { \ delete (x); \ (x)
分类:编程语言   时间:2016-02-12 22:06:13    阅读次数:294
给你两个字符串str1,str2,找出str2在str1中的位置
如题 题目参考链接: http://blog.csdn.net/hxz_qlh/article/details/14110221 代码来自非原创 1 #include <iostream> 2 #include <cstdio> 3 4 using namespace std; 5 6 char *
分类:其他好文   时间:2016-02-12 18:42:24    阅读次数:396
函数指针与回调函数
1 #include<iostream> 2 using namespace std; 3 4 void show(int a) 5 { 6 cout << a <<"...."; 7 } 8 9 int add(int a, int b) 10 { 11 return a + b; 12 } 13
分类:其他好文   时间:2016-02-12 18:40:09    阅读次数:187
插入排序
插入排序是一种简单的排序算法,由于每一个嵌套循环都花费N次迭代,因此插入排序的时间复杂度为O(N^2)。 编码实现并测试: #include <iostream> #include <vector> using namespace std; template <typename Comparable
分类:编程语言   时间:2016-02-12 15:06:24    阅读次数:173
配对问题 小于10 1.3.5
#include <cstdio> #include <algorithm> #include <cstring> #include <iostream> using namespace std; int partner[100]; int N; int total; void dfs() { in
分类:其他好文   时间:2016-02-12 12:48:28    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!