C++编程 Write a C++ program which will read from a file a 25x2

C++编程
Write a C++ program which will read from a file a 25x25 grid of letters,followed by 10 words.Your program should find each of the words and output to a file the location (the top left corner is (0,0)) and the direction (up,down,right,left,digonal up-left,diagonal up-right,diagonal down-left,or diagonal down-right).All letters/words are UPPERCASE.
Moodle has a sample input file to use.
sunshicheng 1年前 已收到1个回答 举报

开心丛零 幼苗

共回答了27个问题采纳率:81.5% 举报

写一个C + +程序将读取一个文件的字母25x25格的10个字,其次.你的程序应该能够找出这些词和输出每到一个文件的位置(左上角为(0,0))和方向(上,下,右,左,digonal注册左,对角线右,对角线下左,或对角下右).所有的字母/字都是大写.
Moodle的一个示例输入文件使用.

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.026 s. - webmaster@yulucn.com