码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
20140709
话说今天这个1个同学2002的题目真的有可总结性吗。今天的结论是我的暴力又进化了,现在可以长达5KB,一节更比六节强。明天再来听评讲。#include#include#include#includeusing namespace std;struct edge{ long long to,d; ed...
分类:其他好文   时间:2014-07-11 09:46:51    阅读次数:153
C++中的结构的使用
#include using std::cout; using std::endl; //定义结构 struct Box{ double length; double width; double height; }; double volume(const Box& aBox); int main(){ Box box={70.0,60.0,40.0}; d...
分类:编程语言   时间:2014-07-11 08:37:11    阅读次数:189
Effective C++ Item 28 避免返回对象内部数据的引用或指针
经验:避免返回handles(包括 references、指针、迭代器)指向对象内部。遵守这个条款可增加封装性, 帮助 const 成员函数的行为像个 const,并将发生“虚吊号码牌”(dangling handles)的可能性降至最低。 示例: class Point{ public: Point(int x, int y); //... void setX(int newVal); void setY(int newVal); //... }; struct RectData{ Point...
分类:编程语言   时间:2014-07-10 22:56:05    阅读次数:230
Codeforces Beta Round #10 B. Cinema Cashier (树状数组)
题目大意: n波人去k*k的电影院看电影。 要尽量往中间坐,往前坐。 直接枚举,贪心,能坐就坐,坐在离中心最近的地方。 #include #include #include #include #define maxn 1000005 #define lowbit(x) (x&(-x)) using namespace std; struct BI...
分类:其他好文   时间:2014-07-10 22:52:57    阅读次数:262
Objective-C中常用的结构体NSRange,NSPoint,NSSize(CGSize),NSRect
Objective-C中常用的结构体NSRange,NSPoint,NSSize(CGSize),NSRect 1   NSRange NSRange 的原型为 typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange; NSMakeRange的函数...
分类:其他好文   时间:2014-07-10 21:52:57    阅读次数:217
poj3134 Command Network --- 最小树形图
新单词unidirectional get T T 求有向图上,以某点为根的,最小生成树 参考别人的模板 #include #include #include #include #include #include #include #define inf 2000000000 using namespace std; struct node1 { double x,...
分类:Web程序   时间:2014-07-10 20:32:47    阅读次数:285
队列——链表实现
引言:            队列与栈的区别是队列是先进先出的数据结构。为了使得出入队列容易,可以引入队列头指针和队列尾指针。 分析描述:        队列的结点结构。 typedef int QElemType; typedef struct QNode{ QElemType data; struct QNode *next; }QNode, *QueuePtr;...
分类:其他好文   时间:2014-07-10 19:28:47    阅读次数:197
poj 2632 Crashing Robots, 模拟
点击打开链接 简单 模拟机器人的移动,发生碰撞时输出相应的信息。 code #include #include using namespace std; struct node{ int k; int s; } mtx[200][200]; struct node1{ int x, y; } rob[200]; int n, m; int...
分类:其他好文   时间:2014-07-10 17:25:11    阅读次数:153
VB6之切换桌面
Desktop的API,用于切换或者系统桌面环境。扩展起来可以做一个锁屏程序或者多桌面程序。模块部分: 1 'desktop.bas 2 'too much struct and declare unused, shame~ 3 Public Declare Function GetThrea...
分类:其他好文   时间:2014-07-10 14:50:31    阅读次数:314
C++ deepin
访问类成员函数(cin.getline())方式是从访问结构成员变量方式衍生而来;C++结构体变量申明 struct关键字可省略;c++结构体变量声明初始化, = 可省略;但此需用在c++,大家都知道C++ 11有很多的新 特性C++结构体可以讲String Object作为其成员;struct R...
分类:编程语言   时间:2014-07-10 14:46:04    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!