1 #include 2 #include 3 #include 4 #include 5 #include 6 7 typedef void (__stdcall *P_WALK_DIR_CALLBACK)(const std::string &In_strFilePath); 8 ...
分类:
编程语言 时间:
2014-07-16 19:31:47
阅读次数:
256
不知道为什么{3,4,1}就是通不过。/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), n...
分类:
其他好文 时间:
2014-07-13 12:25:11
阅读次数:
236
以前只是知道这个东西,可以解决一些问题,最近自己做一个字符串操作的东东,看了下redis的源码,做个小的总结。struct cl_str_s{ int free; int len; char buf[];}; 代码的意思是,我们定义了一个结构体,它有这么三个属性,作用很明显不详细...
分类:
其他好文 时间:
2014-07-13 09:25:28
阅读次数:
158
考试的时候想了好久都没想出正解 >_ 2 #include 3 #include 4 using namespace std; 5 #define N 500500 6 typedef long long LL; 7 8 int n,k; 9 int num[N];10 int sum[N];...
分类:
其他好文 时间:
2014-07-13 08:20:23
阅读次数:
207
上下文与全异步web服务器的关系请求上下文指在一个请求的处理过程中,把一些关键的信息保存下来的类似struct这样的结构体。每个http模块都可以有自己的上下文结构体,一般都是在刚开始处理请求时在内存池上分配它,之后当经由epoll、http框架再次调用到http模块的处理方法时,这个http模块可...
分类:
其他好文 时间:
2014-07-13 08:09:49
阅读次数:
218
#pragma once#include "student.h"#include "Teacher.h"typedef enum _EPersonType{ ePersonUndefin = 0, ePersonStudent, ePersonTeacher}EPersonType...
分类:
其他好文 时间:
2014-07-13 00:36:51
阅读次数:
216
c++ 联邦语言:
typedef {
unit C;
unit Object-Oriented C++;
unit Template C++;
unit STL;
};
notice: C++高效编程取决于你使用C++的哪一个部分。
eg:pass-by-reference and pass-by-value.
c:内置类型value kill reference...
分类:
编程语言 时间:
2014-07-13 00:14:37
阅读次数:
282
引言:
使二叉树成为二叉查找树的性质是:对于树中的每个节点X,它的左子树中所有关键字值小于X的关键字值,而它的右子树中所有关键字值大于X的关键字值。
二叉查找树声明
struct TreeNode;
typedef struct TreeNode *Position;
typedef struct TreeNode *SearchTree;
struct T...
分类:
其他好文 时间:
2014-07-12 19:25:31
阅读次数:
179
>___<!程序:a、USART设置,这个要看固件库!首先用结构体把参数配置好,然后调用初始化函数;接着使能接收中断和发送缓冲中断;最后使能USART1。 1 void USART_Config(USART_TypeDef* USARTx){ 2 USART_InitStructure.USAR.....
分类:
其他好文 时间:
2014-07-12 16:04:43
阅读次数:
1195
1 #include 2 #include 3 typedef struct Node 4 { 5 int data; 6 struct Node *next; 7 }Node,*LinkList; 8 9 void initList(LinkList *L)10 {11 ...
分类:
其他好文 时间:
2014-07-12 14:38:30
阅读次数:
201