问题描述
下面的数据,我要从内向外遍历(中间点为起点),请问如何实现00_00,00_01,00_02,00_03,00_04,00_05,00_06,00_07,00_08,00_0901_00,01_01,01_02,01_03,01_04,01_05,01_06,01_07,01_08,01_0902_00,02_01,02_02,02_03,02_04,02_05,02_06,02_07,02_08,02_0903_00,03_01,03_02,03_03,03_04,03_05,03_06,03_07,03_08,03_0904_00,04_01,04_02,04_03,04_04,04_05,04_06,04_07,04_08,04_0905_00,05_01,05_02,05_03,05_04,05_05,05_06,05_07,05_08,05_0906_00,06_01,06_02,06_03,06_04,06_05,06_06,06_07,06_08,06_0907_00,07_01,07_02,07_03,07_04,07_05,07_06,07_07,07_08,07_0908_00,08_01,08_02,08_03,08_04,08_05,08_06,08_07,08_08,08_0909_00,09_01,09_02,09_03,09_04,09_05,09_06,09_07,09_08,09_09输出结果应该04_05,04_06,05_06,05_05,05_04,04_04,03_04...依次类推,求大侠们实现。因为我们的真实数据远远不止这么多,所以需要一套算法来遍历,形成一个一维数组。
解决方案
本帖最后由 liwen5222 于 2011-04-12 17:47:12 编辑