Created
July 17, 2014 10:47
-
-
Save erayarslan/df392757dfbd041ab8cb to your computer and use it in GitHub Desktop.
MessageBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
int mesaj(); | |
int main() | |
{ | |
int cevap=mesaj(); | |
if (cevap==6) | |
{ | |
cout<<"Evet dendi"; | |
} | |
else if (cevap==7) | |
{ | |
cout<<"Hayir dendi"; | |
} | |
if (cevap==2) | |
{ | |
cout<<"Iptal dendi"; | |
} | |
return 0; | |
} | |
int mesaj() | |
{ | |
return MessageBox(NULL, "Evet ? Hayir ? Iptal?", "Soru", MB_YESNOCANCEL | MB_ICONQUESTION); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment