摘要:
思路很简单,先是输入并统一大小写,然后在表中找到字串的第一个字符,并以此展开(FC()函数),确定了第二个元素方向后,调用CF()函数按方向一直查找下去。若完全匹配,则输出第一元素的位置。但是一直是WA,自己设的几组数据也不能通过。以下是代码:#include<iostream>#include<string>#include<cctype>using namespace std;int FC(int i,int j);int CF(int t,int x,int y);char a[50][50];int n,m;string s;int main(){ 阅读全文
posted @ 2012-05-25 08:19
Demon、
阅读(822)
评论(0)
推荐(0)

浙公网安备 33010602011771号