这是我的网站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
/**
* 功能:一个袖珍的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
1、引用内部函数绑定机制
#include
#include
using
namespace
std;
using
namespace
std::placeholders;
//仿函数,创建一个函数指针,引用一个结构体内部或者一个类内部的共有函数
struct
MyStruct
{
void...
分类:
编程语言 时间:
2014-08-17 01:07:51
阅读次数:
473
单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。这里主要介绍下在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
解题报告
题意:
给定的矩形里面有镂空的矩阵,求矩阵面积并。
思路:
直接把一个图形拆成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
解题报告
题意:
矩形面积并。
思路:
扫描线+线段树
#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
过了样例就能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
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