这是我的代码,不知道为什么错了?
#include<bits/stdc++.h>
using namespace std;
int main()
{
MessageBox(,"Hello","Caption",MB_OK);
}
#include<bits/stdc++.h>
#include<Windows.h>
using namespace std;
int main()
{
int x=MessageBox(GetForegroundWindow(),"【要说的话】","【标题】",1~6);
cout<<x;
}
第五行,你多了个","在前面
供参考:
#include<windows.h>
//#include<bits/stdc++.h>
using namespace std;
int main()
{
MessageBox(0,"Hello", "Caption", MB_OK);
}