码迷,mamicode.com
首页 > 其他好文
fd_set的具体实现过程
fd_set的实现详细原理 define FD_SETSIZE 1024 typedef unsigned long fd_mask; #define NBBY 8 /* number of bits in a byte */ #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mas...
分类:其他好文   时间:2015-04-09 17:29:53    阅读次数:149
队列 广搜 nyoj 58 最少步数
最少步数 时间限制:3000 ms  |  内存限制:65535 KB 难度:4 描述 这有一个迷宫,有0~8行和0~8列:  1,1,1,1,1,1,1,1,1  1,0,0,1,0,0,1,0,1  1,0,0,1,1,0,0,0,1  1,0,1,0,1,1,0,1,1  1,0,0,0,0,1,0,0,1  1,1,0,1,0,1,0,0,1...
分类:其他好文   时间:2015-04-09 17:28:32    阅读次数:115
全球5大最尖端的邮件营销战术
大多数品牌都把电子邮件营销作为其整体营销战略的一部分。但近年来,消费者已经对那种通用的、一刀切似的促销邮件越来越厌倦,如果你还是这样做的,那么就需要立即更新你的战术,以保持邮件在客户的收件箱中切实发挥效应。 实时的价值:继续深化的实时触发活动 大数据已经触及到我们业务的方方面面,通过分析详细的消费者数据,可以使品牌创建高度个性化的和有效的活动。据全球领先的多渠道智能化营销服务机构web...
分类:其他好文   时间:2015-04-09 17:26:42    阅读次数:94
leetcode-200 Number of Islands
?? 问题描述: Given a 2dgrid map of '1's (land) and'0's (water),count the number of islands. An island is surrounded by water and is formed byconnecting adjacent lands horizontally or vertically...
分类:其他好文   时间:2015-04-09 17:27:50    阅读次数:160
Centos 64下实现socket通信
源码: /* File Name: server.c */ #include #include #include #include #include #include #include //Ineternet address family #include #define DEFAULT_...
分类:其他好文   时间:2015-04-09 17:26:28    阅读次数:209
杭电 HDU ACM 2048 神、上帝以及老天爷
神、上帝以及老天爷 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26034    Accepted Submission(s): 10826 Problem Description HDU 2006'10 ACM co...
分类:其他好文   时间:2015-04-09 17:26:49    阅读次数:178
my_strcpy
#include void my_strcpy(char* dest,const char* str) { if(NULL != dest || NULL != str) { while(((*dest++) = (*str++)))//注意运算的优先级 { ; } } *dest = '\0';...
分类:其他好文   时间:2015-04-09 17:24:20    阅读次数:89
【LeetCode】Path Sum II
题意Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.思路基本的深搜,注意一点就是必须是根到叶子节点求和,不可在非叶子节点处停。代码/** * Definition for binary tree * struct TreeNode { *...
分类:其他好文   时间:2015-04-09 17:25:31    阅读次数:147
GCD
什么是GCD Grand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。该方法在Mac OS X 10.6雪豹中首次推出,并随后被引入到了iOS4.0中。GCD是一个替代诸如NSThread, NSOperationQueue, NSInvocationOperation等技术的很高效和强大的技术,它看起来象就其它语言的闭包(Closure)一样,但苹...
分类:其他好文   时间:2015-04-09 17:24:56    阅读次数:142
LeetCode 53 Maximum Subarray**
题目:Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguo...
分类:其他好文   时间:2015-04-09 17:25:35    阅读次数:171
ListView中嵌套GridView时GridView的数据无法完全显示,只显示一行
ListView中嵌套GridView时GridView的数据无法完全显示...
分类:其他好文   时间:2015-04-09 17:25:34    阅读次数:133
RT-Thread 学习笔记(十一)--- 开启基于RTGUI的LCD显示功能
软件环境:Win7,Keil MDK 4.72a, IAR EWARM 7.2, GCC 4.2,Python 2.7 ,SCons 2.3.2 硬件环境:Armfly STM32F103ZE-EK v3.0开发板 参考文章:RT-Thread编程指南 RT-Thread_1.2.0+lwip+rtgui0.8.0 移植心得 RT-Thread RTOS组件:RTGUI...
分类:其他好文   时间:2015-04-09 17:24:10    阅读次数:1095
内核compiler.h的学习
直接上代码就可以了,所以的学习都在注释当中呢!#ifndef __LINUX_COMPILER_H #define __LINUX_COMPILER_H#ifndef __ASSEMBLY__//如果宏定义了__CHECKER__ //详细学习一个Sparse #ifdef __CHECKER__/** * 这个使用来修饰一个变量的,这个变量必须是非解除参考的,no * dereference...
分类:其他好文   时间:2015-04-09 17:21:58    阅读次数:136
蓝桥杯 历届试题 城市建设 最小生成树
把码头作为0点处理。 首先判断不建码头是否可以生成最小生成树 最小生成树用kruskal算法,若对于代价 若可以:Min(最小生成树(不建码头),最小生成树(建码头)); 若不可:最小生成树(建码头) #include "stdio.h" #include "string.h" #include "algorithm" using namespace std; int fathe...
分类:其他好文   时间:2015-04-09 17:22:59    阅读次数:180
volatile的用法(转)
volatile 影响编译器编译的结果,指出,volatile 变量是随时可能发生变化的,与volatile变量有关的运算,不要进行编译优化,以免出错,(VC++ 在产生release版可执行码时会进行编译优化,加volatile关键字的变量有关的运算,将不进行编译优化。)。例如:volatile ...
分类:其他好文   时间:2015-04-09 17:20:20    阅读次数:103
Cloudera CDH5 部署实战指南(离线安装)
配置软件源服务器1、安装createreporpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh creat....
分类:其他好文   时间:2015-04-09 17:18:41    阅读次数:157
N_grams 简介
Introduce probabilistic language modelinglet's thinking about the probability of sentence.$P(w_1, w_2, w_3, w_4) \\= P(w_1, w_2, w_3) * P(w_4| w_1, w_...
分类:其他好文   时间:2015-04-09 17:19:05    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!