内蒙古师范大学论坛

 找回密码
 注册(开放注册)
搜索
查看: 3678|回复: 2
打印 上一主题 下一主题

[计算机类] 一个来自国外的C语言程序题目

[复制链接]
跳转到指定楼层
1#
发表于 2006-6-3 22:01:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
You are to prepare a C programe that accepts one line argument.This argument will be the name of a file containing a maze.For explorer,if the name of your compiled program is a.out and the name of the maze fileis mazel then you would run the program as follows.

The maze file is a text file made up of spaces #'s plus one "s"and one"f",representing the start and finish of the maze.For the maze to be well formed it must meet the following requirements.

1.The start and finish must be surrounded by an unbroken perimeter of #"s
2.After the final # in each line of the maze the next character is a newline.
3.There are no spaces tithin the maze that cannot be reached by moving down one of the maze paths.

The following is an example of a maze file.

       #######
       #     #############
######## ### #           ###
#        #f### #########   #
#S#### # #     #       ### #
###    # ####### ### ###   #
  # ####         # ###   ###
  #    ##########      ###
  ####             #####
     ###############

The following points can also be noted about the mazes
1.The maze can be any width and length and as you can see,does not have to be rectangular.
2.When moving in the maze you may only move up and down and right and left.You may not move diagonally.

急用,我的邮箱:guolinfire@163.com
谢啦先!!!!!
2#
发表于 2006-6-12 20:12:58 | 只看该作者
不懂ENGLISH

不知道什么意思

呵呵
3#
发表于 2006-11-9 21:25:25 | 只看该作者
看懂了不知道现在给你作还来得及不?
您需要登录后才可以回帖 登录 | 注册(开放注册)

本版积分规则

手机访问本页请
扫描左边二维码
         本网站声明
本网站所有内容为网友上传,若存在版权问题或是相关责任请联系站长!
站长联系QQ:7123767   myubbs.com
         站长微信:7123767
请扫描右边二维码
www.myubbs.com

小黑屋|手机版|Archiver|内蒙古师范大学论坛 ( 琼ICP备10001196号-2 )

GMT+8, 2024-4-20 08:24 , Processed in 0.081742 second(s), 14 queries .

Powered by 高考信息网 X3.3

© 2001-2013 大学排名

快速回复 返回顶部 返回列表