字母表单词的查询工具问题
以下是一个18行20列的字母表,请设计一个工具来帮助寻找给定单词在下表中的位置我现在字母表的输出有问题,工具的设计也没头绪。都四天了,求大神们帮忙看下,在线等
#include<iostream>
#include<string.h>
using namespace std;
main()
{
char A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z;
char word[18][20]={{S,O,O,N,O,W,H,E,R,E,A,D,V,D,H,G,I,H,A,E},
{R,B,W,I,S,E,L,Y,S,Y,L,T,N,E,G,N,O,L,L,D},
{T,H,E,R,E,M,N,I,A,G,A,I,E,A,S,I,L,Y,M,R},
{O,E,Y,Y,L,K,C,I,U,Q,H,Y,L,W,O,L,S,D,O,A},
{I,R,L,F,Y,Y,O,N,C,E,D,F,Y,V,G,F,E,R,S,W},
{F,O,L,D,O,A,B,N,B,A,H,E,A,D,R,A,R,B,T,E},
{O,F,A,R,E,R,D,R,E,S,Y,L,T,N,E,S,E,R,P,M},
{R,E,E,A,A,A,E,R,A,T,N,D,S,R,A,T,V,A,D,O},
{W,B,R,W,R,J,L,V,E,E,F,S,R,E,T,O,E,E,S,H},
{A,C,A,P,L,A,T,I,E,T,N,O,I,V,L,D,N,L,S,V},
{R,Y,M,U,Y,K,C,A,B,R,S,M,F,E,Y,A,A,O,E,R},
{D,Y,T,O,M,O,R,R,O,W,B,E,E,W,S,Y,M,R,L,A},
{W,A,L,T,N,A,T,Y,O,R,N,W,Y,O,D,E,E,I,N,T},
{H,E,H,T,R,T,L,R,I,S,T,H,B,H,T,H,T,W,O,H},
{E,E,E,E,E,T,H,S,O,R,S,E,T,I,W,T,O,H,E,E},
{N,R,L,K,F,I,K,L,A,H,L,R,M,Y,L,D,U,O,L,R},
{C,Y,A,O,L,L,U,P,Y,O,S,E,N,E,Q,U,I,T,E,D},
{E,V,S,E,Y,Y,A,Q,W,R,S,A,S,Y,A,W,L,A,B,S}};
for(int i=0;i<18;i++)
{
for(int j=0;j<20;j++)
{
cout<<word[i][j];
}
cout<<endl;
}
return 0;
}