精确覆盖#include #include #include #include #include using namespace std;const int maxn=920;const int maxnode=920*550;const int maxr=550;int ans;struct DL...
分类:
其他好文 时间:
2014-08-26 09:44:25
阅读次数:
221
最初代码:
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: udpcli ");
//1.指明服务器的 IP 地址和端口
bzero(&servaddr, s...
分类:
其他好文 时间:
2014-08-25 22:56:15
阅读次数:
374
Run-time PM.每个device或者bus都会向run-time PM core注册3个callbackstruct dev_pm_ops {...int (*runtime_suspend)(struct device *dev);int (*runtime_resume)(struct ...
分类:
系统相关 时间:
2014-08-25 22:37:35
阅读次数:
425
新版linux系统设备架构中关于电源管理方式的变更 based on linux-2.6.32一、设备模型各数据结构中电源管理的部分linux的设备模型通过诸多结构体来联合描述,如struct device,struct device_type,struct class, struct device...
分类:
系统相关 时间:
2014-08-25 22:34:14
阅读次数:
392
学习云风的skynet源码,简单记录下。
void
skynet_globalmq_push(struct message_queue * queue) {
struct global_queue *q= Q;
uint32_t tail = GP(__sync_fetch_and_add(&q->tail,1));
// only one thread can set the sl...
分类:
Web程序 时间:
2014-08-25 21:11:04
阅读次数:
499
import java.util.Scanner;public class WordReversal1151 { static int N = 0;// N个输入块 static int num;// 每个输入块里有多少句话 static String blank_line; public stat...
分类:
编程语言 时间:
2014-08-25 21:07:24
阅读次数:
294
给你N信封和1张卡片,让你从左到右选择信封(要求是右信封比左信封大)且最左边的信封要能装进卡片#include #include #include using namespace std;struct Node{ int si, sj; unsigned short n;};Node S...
分类:
其他好文 时间:
2014-08-25 20:50:04
阅读次数:
186
If you wrote some struct whatever in C or C++ style.Please be careful for those in memory bug.1)结构体的内存变换判断struct strA{int a;int b;double c;};it was us...
分类:
其他好文 时间:
2014-08-25 20:44:24
阅读次数:
204
oracle rac常用的命令
节点层:olsnodes
网络层: oifcfg
集群层:crsctl,ocrcheck,ocrdump,ocrconfig
应用层:srvctl,onsctl,crs_stat
一.节点层:
olsnodes 用来显示集群点列表,可以混用
[root@rac1 bin]# ./olsnodes -help
Usage: olsnodes [...
分类:
数据库 时间:
2014-08-25 19:24:14
阅读次数:
577
1 // 树结点定义2 typedef struct TNode3 {4 int value;5 TNode *left;6 TNode *right;7 }*PTNode;1. 前序遍历的非递归实现(借鉴递归思想实现)思想:访问到一结点时,先将其入栈,假设入栈节点为P。访问...
分类:
其他好文 时间:
2014-08-25 19:06:54
阅读次数:
212