码迷,mamicode.com
首页 >  
搜索关键字:nginx main    ( 89968个结果
java开始到熟悉63-65
本次内容:java常用类1、包装类 1 package array; 2 3 public class wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new Inte...
分类:编程语言   时间:2014-05-01 09:16:28    阅读次数:384
POJ 2443 - Set Operation
注意变换思维,然后就是水题。(如果卡时还可以进一步二分优化。)#include long existed[10000][32];int main(void){ int N;// freopen("poj2443.txt", "r", stdin); scanf("%d", &N);...
分类:其他好文   时间:2014-05-01 09:15:47    阅读次数:373
深入指针(一)
本次主题:指针与数组在进入主题前,我们先看一个例子:#includeint main(){ int a[5] = { 1, 2, 3, 4, 5 }; int *ptr = (int *) (&a + 1); printf("%d,%d\n", *(a + 1), *(ptr - ...
分类:其他好文   时间:2014-05-01 08:40:11    阅读次数:324
结构体中的指针与零长度数组
0长度的数组在ISO C和C++的规格说明书中是不允许的,但是由于gcc 预先支持C99的这种玩法,所以,“零长度数组”在gcc环境下是合法的。 先看下面两个例子。 pzeroLengthArray.c #include struct str { int len; char *s; }; struct foo { struct str *a; }; int main() {...
分类:其他好文   时间:2014-04-30 22:22:39    阅读次数:300
uva 11988 这题可以看出c++中string效率的底下
用c语言实现 #include #include #include using namespace std; typedef struct node { char x; struct node *next; }chan; chan *root = new chan; char a[100010]; int main() { while(scanf("%...
分类:编程语言   时间:2014-04-29 13:47:20    阅读次数:358
仿nginx Http服务器的设计与实现(一)——多进程和多路IO的实现
最近在尝试自己写一个Http服务器,在粗略研究了nginx的代码之后,决定仿照nginx中的部分设计自己实现一个高并发的HTTP服务器,在这里分享给大家。...
分类:其他好文   时间:2014-04-29 13:38:21    阅读次数:345
C++数组初始化的问题
有时候为了省事觉得这样就可以初始化一个数组 int main(int argc,char ** argv) { int arrays[11]={10}; }...
分类:编程语言   时间:2014-04-29 13:32:21    阅读次数:300
HDU-2850-Load Balancing(贪心)
Problem Description In the Wide Web World, Which web server was popular in web site? Apache, nginx, lighttpd? Baidu.com use Apache, and many web sites like 163.com use nginx. Why? Its configuration i...
分类:其他好文   时间:2014-04-29 13:24:20    阅读次数:355
wustoj 1318 区间的连通性 (最短路)
floyd求最短路。 注意图是有向图。。。 #include #include #include using namespace std; struct node { int x,y,id; }edge[205]; int dis[205][205]; int main() { int c,T,n,a,b,op; while(scanf("%d",&T...
分类:其他好文   时间:2014-04-29 13:21:23    阅读次数:313
Linq To Entity 多表联合查询
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToEntity { class Program { static void Main(string[] args) { //...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:574
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!