91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-02
  • 語言: 其他
  • 標簽: C語言??

資源簡介

數據結構,抽象數據類型-----海龜作圖!演示海龜作圖的程序

資源截圖

代碼片段和文件信息

#include
#define?EAST?1
#define?SOUTH?2
#define?WEST?3
#define?NORTH?4

int?getCommand1(int?commands[]int?size);
void?getCommand(int?commands[]);?
void?printArray(int?a[][50]int?rowsint?cols);
void?draw(int?commands[]int?sizeint?picture[][50]int?rowsint?cols);

main()
{
???int?commands[100]={2512351235123512169};//存儲命令?
??//?int?commands[100]={25123512356451245635123512169};?
???int?picture[50][50]={0};?//存儲圖片?
???
???//if?(getCommand(commands100))
??????draw(commands100picture5050);
???system(“pause“);
???return?0;
}

int?getCommand1(int?commands[]int?size)
{
???int?command;
???int?i=0;
???
???printf(“input?the?commands\n“);??
???scanf(“%d“&command);
???while(command!=9?&&?i<=size-1){
?????commands[

評論

共有 條評論