Skip to content

Instantly share code, notes, and snippets.

@erayarslan
Created July 17, 2014 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erayarslan/df392757dfbd041ab8cb to your computer and use it in GitHub Desktop.
Save erayarslan/df392757dfbd041ab8cb to your computer and use it in GitHub Desktop.
MessageBox
#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