Lang:GCC
Edit12345678910111213141516171819202122232425262728293031#include <stdio.h>#include <math.h>#include <stdlib.h>#include <string.h>/* ----------------------------------------------------------------------------*//*** @brief 手势图结构体 bit保存图的信息 每一位表示一条线段* start end表示图的起点和终点 数字1-16表示4*4点阵中的点* weight 权重** index 回溯法使用 标记图的下标* flag 后期使用 判断图的状态 -1 图不符合最终模式 0 图未使用 1 图已使用** 13 14 15 16* 09 10 11 12* 05 06 07 08* 01 02 03 04*//* ----------------------------------------------------------------------------*/typedef struct graph{unsigned char bit[3600];int start;int end;int weight;int index;int flag;}graph;graph garr[18]; // 所有的手势图