码迷,mamicode.com
首页 >  
搜索关键字:using stacks    ( 53729个结果
C#:复选框操作类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ /// /// 复选框操作类 ...
分类:其他好文   时间:2014-05-07 20:22:28    阅读次数:345
快速生成折线图及代码详解
快速生成折线图时,只需要修改代码中的以下数据:1、Y轴刻度个数:Ycounts2、Y轴最小刻度数:YminValue3、横坐标:数组mouth4、标题:strTopic5、用户数据:数组d6、[可选]修改背景色:代码中27行改为所需要的颜色即可完整代码: 1 using System; 2 usin...
分类:其他好文   时间:2014-05-07 17:18:20    阅读次数:364
jQuery获取一般处理程序(ashx)的JSON数据
昨天有在开发的软件生产线生产流程,RFID扫描IC卡的数据,当中有用到jQuery获取一般处理程序(ashx)的JSON数据。今有把它写成一个小例子,望需要的网友能参考。在网站中,创建一个一般应用程序ashx:命名空间:using System.Data;using System.Collectio...
分类:Web程序   时间:2014-05-07 16:55:32    阅读次数:452
十一周 项目三 点类
#include #include using namespace std; class Point //定义坐标点类 { public: Point():x(0),y(0) {}; Point(double x0, double y0):x(x0),y(y0){}; void PrintPoint(); //输出点的信息 double getx() { ...
分类:其他好文   时间:2014-05-07 16:14:20    阅读次数:267
codechef The Morning Commute 题解
The Morning Commute The Chef commutes to work every day using the city's underground metro. The schedule for the trains has recently been changed and he wants to know how long it will take to tra...
分类:其他好文   时间:2014-05-07 15:37:11    阅读次数:406
C#扩展一个现有的类
做个记录,写个示例using System;class Rubbish{ public void Say() { Console.Write("Hello"); }}static class RubbishExtensions{ public static...
分类:其他好文   时间:2014-05-07 14:57:23    阅读次数:279
SPOJ GSS3 Can you answer these queries III (线段树)
题目大意: 求区间最大子区间的和。 思路分析: 记录左最大,右最大,区间最大。 注意Q_L  和 Q_R  就好。 #include #include #include #include #define lson num<<1,s,mid #define rson num<<1|1,mid+1,e #define maxn 55555 using ...
分类:其他好文   时间:2014-05-07 12:36:16    阅读次数:379
c++ primer plus(第6版)中文版 第七章编程练习答案
第七章编程练习答案 7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数 //7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数 #include using namespace std; double average (unsigned x, unsigned y) { return (2.0 * x * y / (x + y)); } i...
分类:编程语言   时间:2014-05-07 12:03:52    阅读次数:727
变量自增整理
#include using namespace std;#define Max(a, b)((a > b)? a : b)int count = 9;int nMax = Max(count++, ++count);int main(){ cout<<count<<endl; cout<<...
分类:其他好文   时间:2014-05-07 11:07:48    阅读次数:242
括号匹配(栈的应用)
#include #include #include using namespace std;int main(){ int n;cin>>n; while(n--){ stack s; string str;cin>>str; for(int ...
分类:其他好文   时间:2014-05-07 00:19:41    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!