#include <windows.h>

if(MessageBox(NULL,"本文","タイトル",MB_YESNO)==IDYES)
{return;}

これでおk