一区二区国产高清视频在线_真人性做爰A片免费_强伦人妻BD在线电影_亚洲熟妇无码AV_免费人成视频在线观看网站_亚洲欧美精品午睡沙发_在线观看无码的免费网站_中文字幕无码A片久久_日韩欧美国产一区精品_久久精品女人天堂av

重慶醫(yī)科大學(xué)論壇

標(biāo)題: 一個(gè)來(lái)自國(guó)外的C語(yǔ)言程序題目 [打印本頁(yè)]

作者: guolinfire    時(shí)間: 2006-6-3 22:01
標(biāo)題: 一個(gè)來(lái)自國(guó)外的C語(yǔ)言程序題目
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
謝啦先!!!!!
作者: csdsq    時(shí)間: 2006-6-12 20:12
不懂ENGLISH

不知道什么意思

呵呵
作者: 重新來(lái)過(guò)    時(shí)間: 2006-11-9 21:25
看懂了不知道現(xiàn)在給你作還來(lái)得及不?




歡迎光臨 重慶醫(yī)科大學(xué)論壇 (http://www.espacio12.com/) Powered by Discuz! X3.4