Switch case komutludur. Hakan Gözüböyük en başta n harfi çıkıyor o çıkarsa silin.
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout<<"**************************************"<<endl;
cout<<"* HESAP MAKİNESİ V.1.0 *"<<endl;
cout<<"* *"<<endl;
cout<<"* TOPLAMA ICIN[+] *"<<endl;
cout<<"* CIKARMA ICIN[-] *"<<endl;
cout<<"* BOLME ICIN[/] *"<<endl;
cout<<"* CARPMA ICIN[*] *"<<endl;
cout<<"* *"<<endl;
cout<<"* Islemlerini kullaniniz. *"<<endl;
cout<<"* *"<<endl;
cout<<"* HAZIRLAYAN: HAKAN GOZUBUYUK *"<<endl;
cout<<"*
killedby_hkn@hotmail.com *"<<endl;
cout<<"**************************************"<<endl;
float sayi1,sayi2,sonuc;
char islem;
cout<<"bir sayi giriniz : ";
cin>>sayi1;
cout<<"Islemi giriniz(+,-,*,/) : ";
cin>>islem;
cout<<"ikinci sayiyi giriniz : ";
cin>>sayi2;
switch(islem)
{
case'+':
cout<<"Toplama sonucu :"<<(sonuc=sayi1+sayi2)<<endl; break;
case'-':
cout<<"Cıkarma sonucu :"<<(sonuc=sayi1-sayi2)<<endl; break;
case'*':
cout<<"Carpma sonucu :"<<(sonuc=sayi1*sayi2)<<endl; break;
case'/':
cout<<"Bolme sonucu :"<<(sonuc=sayi1/sayi2)<<endl; break;
}
system("PAUSE");
return EXIT_SUCCESS;
}