-
Recent Posts
Recent Comments
Anonymous on 转移至Laisky.us Anonymous on 九宫格手势解锁解法 Anonymous on 九宫格手势解锁解法 El hefe 215 on 九宫格手势解锁解法 道德与责任·其一 | Nature on 道德与行为的继承和变迁·其四 Archives
Categories
Meta
Monthly Archives: September 2011
九宫格手势解锁解法
昨天上课的时候在想,这种九宫格手势解锁究竟有多少种解法 因为刚刚学了C,所以写了个程序试试 #include<stdio.h> /*九宫格手势解锁解法*/ /***************按键结构***************/ typedef struct defkey { int number; /*按键号码*/ int used; /*是否被使用?1:0*/ struct defkey *skey[8]; /*按键周围的8个方向*/ } DEFKEY; /*函数声明*/ void func1(int ,struct defkey *,int ,int ,long *,long ); void func2(struct defkey *); /*文件操作*/ FILE … Continue reading