码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
结构体学习笔记
以下记载了在初学结构体时犯下的一些错误。先来一些杂识struct f{ string name;};struct students{ int num; string name; students *next; students friends;// f fri;}...
分类:其他好文   时间:2014-07-12 13:14:01    阅读次数:206
队列的数组和链表实现
队列的数组和链表实现队列的单链表实现queue.h#ifndef QUEUE_H_#define QUEUE_H_typedef int ElementType;#ifndef _QUEUE_LIST_#define _QUEUE_LIST_struct QNode;typedef struct Q...
分类:其他好文   时间:2014-07-11 22:28:41    阅读次数:306
SGU 134.Centroid(图心)
SGU链接:时间限制:0.25s空间限制:4M题意: 给出一个树(节点数#include #include #include #include #include #define INF 16666using namespace std;struct node { int v, ne;} edge.....
分类:其他好文   时间:2014-07-11 20:28:32    阅读次数:250
红黑树
参考资料:红黑树我的实现 1 #define BLACK 1 2 #define RED 0 3 4 struct node 5 { 6 int value; 7 node *left, *right, *parent; 8 bool color; 9 ...
分类:其他好文   时间:2014-07-09 13:37:56    阅读次数:144
【Nginx】事件和连接
不同的操作系统对应不同的事件驱动机制,在Linux 2.6之后使用epoll机制,对应的事件驱动模块是ngx_epoll_module。Nginx的ngx_event_core_module模块根据操作系统确定使用哪一个事件驱动模块。事件驱动模块在ngx_module_t的ctx通用接口是ngx_event_module_t,定义如下所示: typedef struct { ngx_st...
分类:其他好文   时间:2014-07-09 12:01:13    阅读次数:230
Swift协议(Protocol)
协议是为方法、属性等定义一套规范,没有具体的实现。协议能够被类、结构体等具体实现(或遵守)。 protocol SomeProtocol { // protocoldefinition goes here } struct SomeStructure: FirstProtocol, AnotherProtocol { // structure defin...
分类:其他好文   时间:2014-07-09 11:07:07    阅读次数:180
最近公共祖先模版
LCA tarjan 的离线算法 #include #include #include using namespace std; const int maxn = 40010; int first[maxn], head[maxn], cnt, sum; struct edge { int u, v, w, next; }e[maxn*2], qe[maxn], Q[maxn]; int...
分类:其他好文   时间:2014-07-09 10:23:35    阅读次数:256
thinkPHP之微理解
1、支持win和unix服务器环境,遵循Apache2开源协议。 2、借鉴struct架构,MVC设计模式等 3.几个重要概念:         Dao:DataAccessObject(数据访问对象)         VO对象:ValueObject(数据对象,或者是业务对象)         VoList对象:ThinkPHP数据操作的基本元素。 4、分层架构:...
分类:Web程序   时间:2014-07-09 10:08:11    阅读次数:247
详细分析contrex-A9的汇编代码__switch_to(进程切换)
//函数原型:版本linux-3.0.8 struct task_struct *__switch_to(structtask_struct *, struct thread_info *, struct thread_info *);   #define switch_to(prev,next,last)                                       ...
分类:其他好文   时间:2014-07-09 09:28:09    阅读次数:362
HDU 4856 Tunnels
题意:求经过所有的管道的最短路程,管道内的时间不算 思路:首先BFS处理出管道出口到其他管道入口的距离,然后在队友的指导下明白了状态转移 #include #include #include #include #include using namespace std; const int MAXN = 16; const int INF = 0x3f3f3f3f; struct N...
分类:其他好文   时间:2014-07-09 09:09:21    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!