1.MessageBox(NULL,"内容","标题",MB_OK)
#include <windows.h>
using namespace std;
int main()
{
MessageBox(NULL,"contents","title",MB_OK);
}
2.MessageBox(NULL,"内容","标题",MB_OK|ICONWARNING)
#include <windows.h>
using namespace std;
int main()
{
MessageBox(NULL,"contents","title",MB_OK|ICONWARNING);
}
3.MessageBox(NULL,"内容","标题",MB_OK|ICONQUESTION)
#include <windows.h>
using namespace std;
int main()
{
int response=MessageBox(NULL,"contents","title",MB_OK|ICONWARNING);
if (response==IDYES)
{
cout<<yes;
}
else
{
cout<<no;
}
}