字形矩阵【2012年5月27日】

输入a b Right 或 a b Down ,根据输入输出之字形路径的矩阵。 1 #include <stdio.h> 2 int xx[4]={0,1,-1,1},yy[4]={1,0,1,-1}; 3 int map[100][100],col,row,x,y,dir,steps,idx; 4 char sel[10]; 5 void nextdir() 6 { 7 s
相关文章
相关标签/搜索