摘要: 如图: 设“1”的坐标为(0,0) “7”的坐标为(-1,-1) 编写一个小程序,使程序做到输入坐标(X,Y)之后显示出相应的数字。 原题的讨论见如下链接http://blog.csdn.net/chinainvent/article/details/1332494下面贴出我自己的解法,与大家分享:/* 7 8 9 10 6 1 2 11 5 4 3 12 16 15 14 13 as the matrix shows, we set 1 with pos(0, 0), 2 with pos(1, 0) 3 with pos(1, 1), 4 with pos(0, 1) .... I fou 阅读全文
posted @ 2012-09-26 18:45 blong2010 阅读(138) 评论(0) 推荐(0) 编辑