码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
CNZZ网站流量统计原理简析
这是我的网站www.iyizhan.com,其中只有一个页面index.html, 在index.html上放置了如下的 js 脚本: src="http://s11.cnzz.com/stat.php?id=5364825&web_id=5364825"  language="JavaScript"> 1.当用户访问这个页面时,会请求src,对应的是上面的脚本的源文件:...
分类:Web程序   时间:2014-08-17 10:29:52    阅读次数:458
【ThinkingInC++】23、一个袖珍的C库
/** * 功能:一个袖珍的C库 * 时间:2014年8月17日08:05:26 * 作者:cutter_point */ //这个头文类似一个C的库 #ifndef CLIB_H_INCLUDED #define CLIB_H_INCLUDED typedef struct CStashTag { int size; //每个小空间的大小 int quantit...
分类:编程语言   时间:2014-08-17 08:07:51    阅读次数:234
算法题——合并两条有序的链表
题目:给定两个已排序的链表,返回合并后的链表。思路:将链表L2的每个结点插入到链表L1中,时间复杂度为O(m+n),m、n分别为两条链表的长度。代码: 1 struct ListNode 2 { 3 int value; 4 ListNode *next; 5 ListNod...
分类:其他好文   时间:2014-08-17 03:47:49    阅读次数:285
引用内部函数绑定机制,R转义字符,C++引用,别名,模板元,宏,断言,C++多线程,C++智能指针
1、引用内部函数绑定机制 #include #include   using namespace std; using namespace std::placeholders;   //仿函数,创建一个函数指针,引用一个结构体内部或者一个类内部的共有函数 struct MyStruct {     void...
分类:编程语言   时间:2014-08-17 01:07:51    阅读次数:473
ios单例的实现
单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。这里主要介绍下在arc下,利用gcd实现单例。第一步:声明一个静态实例static SoundTool *_instance;第二步:重写初始化方法+ (id)allocWithZone:(struct _NSZone *)z...
分类:移动开发   时间:2014-08-16 23:37:21    阅读次数:289
二叉树递归与非递归遍历,最近公共父节点算法
#include #include using namespace std;#define MAX 100 //字符串最大长度typedef struct Node //二叉树结点{ char data; Node *lchild,*rchild;} *B...
分类:其他好文   时间:2014-08-16 22:23:51    阅读次数:266
HDU3265_Posters(扫描线/线段树)
解题报告 题意: 给定的矩形里面有镂空的矩阵,求矩阵面积并。 思路: 直接把一个图形拆成4个矩形,进行面积并。 扫描线+线段树 #include #include #include #include #define LL __int64 using namespace std; struct Seg { int lx,rx,h,v; friend bool op...
分类:其他好文   时间:2014-08-16 21:10:41    阅读次数:207
HDU1377_Counting Squares(扫描线/线段树)
解题报告 题意: 矩形面积并。 思路: 扫描线+线段树 #include #include #include #include using namespace std; struct Seg { int lx,rx,h,v; friend bool operator < (Seg a,Seg b) { return a.h<b.h; ...
分类:其他好文   时间:2014-08-16 21:10:01    阅读次数:241
poj 3522 枚举+kruskal
过了样例就能AC 注意一点 0条边特意判断下。是否无法构成生成树也要判断 #include #include #include using namespace std; #define maxn 110 int parent[maxn]; int N,M; struct edge { int u,v,w; }edges[maxn*maxn]; int cmp(void const *a,vo...
分类:其他好文   时间:2014-08-16 21:08:41    阅读次数:190
【C/C++语言】int 在计算机内部的存储
int在32位计算机中占4个字节,主要是想弄清楚这4个字节的在内存中存放的顺序。 1 #include 2 3 using namespace std; 4 5 typedef struct int_char 6 { 7 int a; 8 unsigned char *b; 9...
分类:编程语言   时间:2014-08-16 19:46:11    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!