注:该内容整理自以下链接。http://www.cnblogs.com/yezhenhan/archive/2011/10/16/2214420.html由ANSI标准定义的C语言关键字共32个: auto double int struct break else long switch cas.....
分类:
编程语言 时间:
2014-07-16 19:30:35
阅读次数:
258
分别以两个(带头结点的)循环有序链表表示集合A和B,完成这两个集合并集的操作:代码如下:#includetypedef struct LNode { int data ; struct LNode *next ;}LNode , *LinkList ;void union_OL(L...
分类:
其他好文 时间:
2014-07-16 19:26:37
阅读次数:
211
首先进入network-scripts文件夹 #:cd /etc/sysconfig/network-scripts 然后使用 vi 编辑ifcfg-eth0 #:vi ifcfg-eth0 #仅eth0网卡一个DEVICE = eth0 #设备名称BOOTPROTO = stat...
分类:
系统相关 时间:
2014-07-15 08:39:27
阅读次数:
284
今天做了Leetcode上面一道题Remove Duplicates from Sorted List II,要去去除链表中重复的节点,代码如下 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * ...
分类:
其他好文 时间:
2014-07-13 21:23:10
阅读次数:
160
4.1 引言本章将描述文件的特征和文件的性质4.2 stat、fstat和lstat函数#includeint stat(const char *restrict pathname,struct stat *restrict buf);int fstat(int filedes,struct sta...
分类:
其他好文 时间:
2014-07-13 20:36:36
阅读次数:
283
Knight Moves题意:骑士巡游到某位置的最少步数#include #include int s[20][20];int rear, front;int min;char a, c;int b, d;struct{ int x, y; int p;}Susake[300000];v...
分类:
其他好文 时间:
2014-07-13 20:04:24
阅读次数:
231
关于有继承modelDriven接口的action的ajax调用传入参数...
分类:
其他好文 时间:
2014-07-13 16:28:44
阅读次数:
156
ajax 如何使用不同namespace的action...
分类:
其他好文 时间:
2014-07-13 16:23:32
阅读次数:
111
DOWN操作:linux内核中,对信号量的DOWN操作有如下几种:
void down(struct semaphore *sem); //不可中断
int down_interruptible(struct semaphore *sem);//可中断
int down_killable(struct semaphore *sem);//睡眠的进程可以因为受到致命信号而被唤醒,中断获取信号量...
分类:
其他好文 时间:
2014-07-13 16:21:36
阅读次数:
501
比如在插入有序链表的过程中,一般情况下要使用俩指针来遍历,而后还要判断是否在第一个位置插入;利用指针的指针后不需要另外考虑这种特殊情况。
代码:
#include
#include
struct node{
int data;
struct node *next;
} *head;
//sorted link-list
void insert(struct no...
分类:
其他好文 时间:
2014-07-13 15:38:13
阅读次数:
198