What's wrong with this thing?

Code:#include <iostream.h> #include <afx.h> void In(char var) { int x = 0; while(var != letters[x] && x < 26) x++; if(x < 26) cin>>lines[x]; } void Out(char var) { int x = 0; while(var != letters[x] && x < 26) x++; if(x < 26) cout<<lines[x] << endl; } void Add(char v1, char v2, char v3) { int x = 0; int y = 0; int z = 0; while (v1 != letters[x]&& x < 26) x++; while (v2 != letters[y]&& x < 26) y++; while (v3 != letters[z]&& x < 26) z++; if( x< 26 && y < 26 && z < 26) lines[z] = lines[x] + lines[y]; } void Subtract(char v1, char v2, char v3) { int x = 0; int y = 0; int z = 0; while (v1 != letters[x]&& x < 26) x++; while (v2 != letters[y]&& x < 26) y++; while (v3 != letters[z]&& x < 26) z++; if( x< 26 && y < 26 && z < 26) lines[z] = lines[x] - lines[y]; } void Mult(char v1, char v2, char v3) { int x = 0; int y = 0; int z = 0; while (v1 != letters[x]&& x < 26) x++; while (v2 != letters[y]&& x < 26) y++; while (v3 != letters[z]&& x < 26) z++; if( x< 26 && y < 26 && z < 26) lines[z] = lines[x] * lines[y]; } void Div(char v1, char v2, char v3) { int x = 0; int y = 0; int z = 0; while (v1 != letters[x]&& x < 26) x++; while (v2 != letters[y]&& x < 26) y++; while (v3 != letters[z]&& x < 26) z++; if( x< 26 && y < 26 && z < 26) lines[z] = lines[x] / lines[y]; } char letters [ ] = { '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'}; int lines[ 52 ]={0}; int main() { char info[20][10]; int i =0, dx = 1; cout <<"Enter x exit"<<endl<<endl; while(i < 20 && info[i-1][0] != 'x' || info[i-1][0]!='X') { cin.getline(info[i++],10); } int x; int y = 0; int loop = 'y'; CString space = ""; while(loop == 'y'||loop=='Y') { x = 0; while (x < i){ while(info[x][y] != ' ') { space += info[x][y++]; y++; if(space == "get") { In(info[x][y]); } if(space == "put") { Out(info[x][y]); } if(space == "add") { Add(info[x][y], info[x][y+2], info[x][y+4]); } if(space == "mul") { Mult(info[x][y], info[x][y+2], info[x][y+4]); } if(space == "sub") { Subtract(info[x][y], info[x][y+2], info[x][y+4]); } if(space == "div") { Div(info[x][y], info[x][y+2], info[x][y+4]); } x++; y=0; space = ""; } cout << "Do you wish to loop? (y/n)"; cin.get(); cin >> loop; cout << endl; } } }Code Tags added by Kermi3