码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
OJ-类模版
有一种类,海纳百川,可以对任意类型的数据进行存取,造就这个传奇的,就是模板。 下面的程序中,定义一个类模板,但其中有些成份漏掉了,请你将他们补足,使程序能正确运行,得到要求的输出结果。 //************* begin ***************** #include #include #include using namespace std; template //类模板...
分类:其他好文   时间:2015-06-25 09:04:57    阅读次数:111
C++的内置类型和用户自定义类型的互相转换
这两种之间的转换主要有两种方式第一就是内置类型转换为用户自定义类型,这里以int类型转换为类类型的对象为例,第二就是类类型转换为int类型 前者依靠转换构造函数,后者依靠自定义的类型转换函数 一.转换构造函数 二.类型转换构造函数 #include using namespace std; //转换构造函数只有一个参数,但是有时候这种一个参数的构造函数不仅起到类型转换的作用也起...
分类:编程语言   时间:2015-06-25 09:02:17    阅读次数:116
C++求字符串第一次只出现一次的字符
//求字符串中第一次只出现一次的字符。 #include #include #define _SIZE_ 255 using namespace std;struct Node { int index;//存储下标。 int num;//存储个数。 Node() :index(-1), num(0){} }; char Grial(...
分类:编程语言   时间:2015-06-25 08:59:46    阅读次数:221
C++求二叉树的最大高度差
#include #include using namespace std;template struct Node { Type data; Node *left; Node *right; Node(Type d = Type()):data(d),left(NULL),right(NUL...
分类:编程语言   时间:2015-06-25 08:59:10    阅读次数:113
实验四 主存空间的分配与回收
#include #include #include #include #include #include using namespace std;struct block{ int begin,end;};struct free_place{ ...
分类:其他好文   时间:2015-06-25 08:54:55    阅读次数:125
2005年华中科技大学计算机保研机试真题 找位置
题目1199: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct node{ 7 vector v; 8 }; 9 node map['z'+1];10 int main(){11 ...
分类:其他好文   时间:2015-06-25 08:50:30    阅读次数:141
[Javascript + rxjs] Using the map method with Observable
Like an array, Observable has a map method that allows us to transform a sequence into a new Observable.var Observable = Rx.Observable;//Create click ...
分类:编程语言   时间:2015-06-25 06:44:40    阅读次数:190
使用winform开发的背单词小程序
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:Windows程序   时间:2015-06-25 06:44:08    阅读次数:838
HDU 1358 简单kmp
题目大意:找到所有的可组成连续字符串相连的位置,和循环字符串的个数#include #include #include #include #include #include #include #include using namespace std;#define ll long long#defi...
分类:其他好文   时间:2015-06-25 06:41:39    阅读次数:122
2000年华中科技大学计算机研究生机试真题 对称矩阵
题目1180:对称矩阵时间限制:1 秒内存限制:32 兆特殊判题:否提交:2518解决:1295题目描述:输入一个N维矩阵,判断是否对称。输入:输入第一行包括一个数:N(1 2 #include 3 #include 4 using namespace std; 5 int map[105][1.....
分类:其他好文   时间:2015-06-25 01:20:42    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!