#include<windows.h>
#include<cstdio>
using namespace std;
int main()
{
int a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",1);
cout<<a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",2);
cout<<a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",3);
cout<<a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",4);
cout<<a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",5);
cout<<a;
a=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",6);
cout<<a;
}
创作不易,点个赞吧。。。。