文件名称:turtlePaiting
介绍说明--下载内容均来自于网络,请自行研究使用
C/C++实现著名的“海龟作图”源程序~
海龟作图模型:假设有只海龟,用一个50*50的二维数组模拟一块由方格组成的
画板,记录海龟爬行路线。海龟的行踪命令从一个数组中读取
,如读到1代表右转弯,读到2代表左转弯,读到36则代表前进6
格,经过的格子则置1,假设每次海龟都从[0][0]开始。请问如
何从左转和右转中找到控制二维数组行列增减的方法?-C/C++ to achieve the famous " Turtle mapping" source ~ Turtle mapping model: Suppose there are turtles, with a two-dimensional array of 50* 50 grid formed by the simulation of a drawing board, records of sea turtles crawl route. Turtle' s whereabouts command to read from an array, such as the representative to read a right turn, left turn to read two representatives, the representative read 36 6 cells move through the lattice is set to 1, assuming that each turtle are from [0 ] [0]. How do I find from the left and right control method of two-dimensional array of changes in the ranks?
海龟作图模型:假设有只海龟,用一个50*50的二维数组模拟一块由方格组成的
画板,记录海龟爬行路线。海龟的行踪命令从一个数组中读取
,如读到1代表右转弯,读到2代表左转弯,读到36则代表前进6
格,经过的格子则置1,假设每次海龟都从[0][0]开始。请问如
何从左转和右转中找到控制二维数组行列增减的方法?-C/C++ to achieve the famous " Turtle mapping" source ~ Turtle mapping model: Suppose there are turtles, with a two-dimensional array of 50* 50 grid formed by the simulation of a drawing board, records of sea turtles crawl route. Turtle' s whereabouts command to read from an array, such as the representative to read a right turn, left turn to read two representatives, the representative read 36 6 cells move through the lattice is set to 1, assuming that each turtle are from [0 ] [0]. How do I find from the left and right control method of two-dimensional array of changes in the ranks?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
海龟做图.cpp