Q:

c++ if what is the error in that code? 

hi my english is not very good
down i have the source code that i wrote
"if" and "else if" no problem with the print
but "else" problem I can not print
#include "stdafx.h"
#include <iostream>
using namespace std;

int main() {

    int x, y;
    char a,b;
    bool tm, mf;
    y = 13;
    b = 'A';

    cout <<"Asagidaki toplama islemini yap !" << endl <<  "12" << endl << "+" << endl << "1" << endl;
    cin >> x;
    mf = (x == y);
    cout << "Turkiyenin baskenti'nin bas harfini" << endl << "buyuk harfle yaz" << endl;
    cin >> a;
    tm = (a == b);
    if (tm == mf == 1 )
        cout << "zekisin";
    else if (tm == 1)
        cout << "TM";
    else if (mf == 1)
        cout << "MF";
    else 
        cout << "Basaramadin";

    cin >> a;

}

A:

tm == mf == 1 is incorrect. 
To check if both tm and mf are equal to 1, do this:
if(tm == 1 && mf == 1) instead.