- 博客(3)
- 收藏
- 关注
原创 修改ion2加入xrandr支持
首先,在ioncore/eventh.c中加入下面的代码#include static int hasXrandR=0;static int xrr_event_base;static int xrr_error_base;static void handle_xrandr_notify(XEvent *ev){ if ( !hasXrandR ) return ; if(ev->type
2007-09-03 21:28:00 370
原创 自己写的网上的一些试题C的实现
给一个字符串、例如 “ababc”要求返回“ab”,因为“ab”连续重复出现且最长。#include char *match(char *s, char *pattern, int n){ char *ps, *p, *q, i; for ( ps = s; *ps != 0; ++ps ) { p = ps; q = pattern; i = 0; while ( *q++ == *
2007-08-30 20:57:00 488
原创 从顶部开始逐层打印二叉树结点数据(不用queue的版本)
从顶部开始逐层打印二叉树结点数据#include struct TreeNode{ struct TreeNode *l,*r; int v;};struct Link{ struct TreeNode *node; struct Link *next;};void print2x(struct Link* p, struct Link* last){ struct TreeNode *n;
2007-08-30 20:49:00 1477
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人