void main()
{
fstream f("wertyu.in");
char c[1000];
string s;
int tablelen = strlen(table);
while (!f.getline(c,1000).eof())
{
s = c;
int n = s.length();
for (int i=0;i<n;i++)
{
for (int j=0;j<tablelen;j++)
{
if (s==table[j]) s=table[j-1];
}
}
cout<<s<<endl;
}
}
//C.cpp offered by http://spaces.msn.com/davidblogs/
//24 lines
#include "iostream"
#include "fstream"
#include "string"
using namespace std;
int match(string s,string t)
{
int count=0;
string::size_type index = -1;
while ((index = s.find(t,index+1))!=string::npos) count++;
return count;
}