码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
Ch2_4处理类型
处理类型 类型别名 传统的命名方法: typedef double wages; //wages 是double 的同义词; typedef wages base,*p;//base 是double 的同义词,p 是double *的同义词 新标准——别名声明——using using SI = S ...
分类:其他好文   时间:2016-04-10 12:54:48    阅读次数:118
Derived 派生类
#include "stdafx.h"#include "iostream" using namespace std; class Base1{public: virtual void show() = 0;};class Base2{protected: char* _p; //char* s的地 ...
分类:其他好文   时间:2016-04-10 10:18:21    阅读次数:103
UVA, 10079 Pizza Cutting
简单的一道数学题 题意:N刀能将平面分成多少块 思路:递推 0刀:1块 1刀:1+1块 2刀:1+1+2块 3刀:1+1+2+3块 …… N刀:1+1+2+3+……N块 即(1+N)*N/2 +1块 代码: #include <iostream>#include <cstdio>using name ...
分类:其他好文   时间:2016-04-10 09:06:29    阅读次数:149
Implement Stack using Queues
这题是使用队列去实现栈,属于比较基础的题目。需要考虑的点在于队列为先进先出,即入队在队尾,但是出队在队首,而栈为先进后出,即出栈和入栈都在栈尾。需要实现的功能如下: push(x) -- Push element x onto stack. pop() -- Removes the element ...
分类:其他好文   时间:2016-04-10 01:09:43    阅读次数:174
数据结构综合
P1279 文艺平衡树 额真的是平衡树啊…调了0.5h有点方 #include #include #include #include #include #include #include #include #include using namespace std; #define SZ 666666... ...
分类:其他好文   时间:2016-04-09 23:34:49    阅读次数:263
bzoj2243: [SDOI2011]染色
我抄的,lct。 转疯了。。 先建图保存父节点。剩下我也看不懂。。。先留个坑日后再补吧//能补上。。?。。。 #include #include #include using namespace std; const int maxn = 100000 + 10; char op[10]; int ... ...
分类:其他好文   时间:2016-04-09 21:59:27    阅读次数:296
进栈 出栈
#include "stdafx.h"#include "iostream" using namespace std; class Stack{public: virtual void push(char c) = 0; virtual char pop() = 0;}; class ArraySt ...
分类:其他好文   时间:2016-04-09 18:54:01    阅读次数:124
移动点的坐标
#include "stdafx.h"#include "iostream" using namespace std; class Point{public: Point(double x,double y); ~Point(); //获得类的成员变量_x的值 double GetX()const{ ...
分类:移动开发   时间:2016-04-09 18:50:42    阅读次数:151
c#代码阅读
问题1:这个程序要找的是符合什么条件的数? 问题2:这样的数存在么?符合这一条件的最小的数是什么? 问题3:在电脑上运行这一程序,你估计多长时间才能输出第一个结果?时间精确到分钟(电脑:单核CPU 4.0G Hz,内存和硬盘等资源充足)。 问题4:在多核电脑上如何提高这一程序的运行效率? using ...
分类:Windows程序   时间:2016-04-09 18:44:06    阅读次数:461
winform - 工具栏/菜单栏
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 ...
分类:Windows程序   时间:2016-04-09 16:43:46    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!