码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
HDU 3062
http://acm.hdu.edu.cn/showproblem.php?pid=30622sat判定性问题模板#include #include #include #include #include #include using namespace std ;struct node { i...
分类:其他好文   时间:2014-05-08 19:24:07    阅读次数:363
OpenJudge Trans
#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;const int inf=(int)1E9,maxT=100+1,maxn=20,...
分类:其他好文   时间:2014-05-08 19:16:07    阅读次数:275
最长不下降序列解决算法
#include "stdafx.h"#include#include#includeusing namespace std;long long d[100000],a[100000];long long len,i,k,n;long long min(long long t){ long long...
分类:其他好文   时间:2014-05-08 14:05:19    阅读次数:261
十一周 项目三 点类
#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
截取运行模块地址
std::string GetFilePath() { char exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH); GetModuleFileName(NULL,exepath,MAX_PATH); tmp...
分类:其他好文   时间:2014-05-07 14:59:14    阅读次数:240
C++中static类成员
static局部变量static局部变量确保不迟于在程序执行流程第一次经过该对象的定义语句时进行初始化这种对象一旦被创建,在程序结束前不会被撤销。在该函数被多次调用的过程中,静态局部对象会持续存在并保存它的值。#include#include#includeusing namespace std;s...
分类:编程语言   时间:2014-05-07 14:21:45    阅读次数:384
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
概念学习(Concept Learning)
这是概念学习的一个简单示例的C++代码。 1 #include 2 using namespace std; 3 typedef enum Sky{Sunny,Rainy}Sky; 4 typedef enum AirTemp{Warm,Cold,Cool}AirTemp; 5 type...
分类:其他好文   时间:2014-05-06 23:46:41    阅读次数:689
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!