很完整的海龟作图,有实验报告~~!海龟的相关类型说明为:#defineUP0#defineDOWN1TypedefintpenState;//取值UP或者DOWNTypedefstruct{floatv,h;}aPoint;Typedefstruct{Intheading;//龟头(画笔)方向,简称龟头朝向penStatepen;//画笔状态:UP抬笔,DOWN落笔Intcolor;//画笔当前颜色aPointPos;//海龟当前位置}newTurtle