/**
* 功能:宏处理定义
* 时间:2014年8月1日09:07:33
* 作者:cutter_point
*/
#include
#include
using namespace std;
#define PRINT(STR, VAR) cout<<STR "=" <<VAR<<endl; //这里宏定义之后,所有PRINT("STR", VAR)
//都会被cout之后的东西所覆盖...
分类:
编程语言 时间:
2014-08-12 22:15:24
阅读次数:
208
把N个建筑正投影到一个竖直平面上,给出N个建筑的左右坐标值和高度,计算阴影部分的面积。input 第一行建筑物的个数,接下来N行,每行给出三个数, 左右坐标值 和高度。其中1,r,h《=十亿.output 面积。 1 #include"iostream" 2 #include"cstdio" 3 ....
分类:
其他好文 时间:
2014-08-12 10:03:13
阅读次数:
258
#include "iostream.h"
#define MAXSIZE 10
typedef struct queue{
int q[MAXSIZE] ;
int front;
int rear;
int n;//用于引用计数
};
void initQueue(queue* qq);
void initQueue(queue* qq) //此处必须是引用...
分类:
编程语言 时间:
2014-08-11 12:02:52
阅读次数:
259
1.C++数据类型自定义:#include<iostream>
intmain(){
typedefcharName[20];
Namea,b;
std::cout<<typeid(a).name()<<typeid(b).name();
std::cin.get();
return0;
}//typeid(变量名).方法名=>输出变量的数据类型另一种定义方法:#include<ios..
分类:
编程语言 时间:
2014-08-11 03:06:51
阅读次数:
296
提到输入输出流,作为CPPer很自然的就会想到std::iostream,对于文本流的处理,iostream可以说足够强大,应付一般复杂度的需求毫无压力。对二进制流处理却只能用“简陋”来形容,悲催的是,作为一个在多媒体软件领域默默耕耘多年的码农日常打交道最多的偏偏就是二进制流。前些年流行过一本书叫做...
分类:
编程语言 时间:
2014-08-07 00:37:37
阅读次数:
390
lca。。。
排个序然后暴力保平安
_(:зゝ∠)_
#pragma comment(linker, "/STACK:102400000,102400000")
#include"cstdio"
#include"iostream"
#include"set"
#include"queue"
#include"string.h"
using namespace std;
#define...
分类:
其他好文 时间:
2014-08-05 19:25:00
阅读次数:
299
重拾C++的编程之路:先来一个helloworld#include<iostream>
#include<Windows.h>
#include<tchar.h>
usingnamespacestd;
intmain(){
MessageBox(NULL,"Helloworld","Information",0);
return0;
}若弹出提示无XXX.exe文件,打开工具,XXX项目设置字符集编码为..
分类:
编程语言 时间:
2014-08-05 11:29:40
阅读次数:
218
Task schedule
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768
K (Java/Others)
...
分类:
其他好文 时间:
2014-08-04 11:10:37
阅读次数:
255
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
pair p;
p = make_pair(1,2) ;
pair p1(1,"sttttaa");...
分类:
编程语言 时间:
2014-08-04 11:09:07
阅读次数:
236