添加 'msg_control.cpp'

このコミットが含まれているのは:
Leexamp 2023-07-24 09:03:04 +09:00
コミット 892269d7bd
1個のファイルの変更15行の追加0行の削除

15
msg_control.cpp ノーマルファイル
ファイルの表示

@ -0,0 +1,15 @@
#include<iostream>
#include<windows.h>
using namespace std;
void msg(char *title,char *info){
MessageBox(GetForegroundWindow(),title,info,4);
}
int main(int argc,char *argv[]){
if(argc==3){
cout<<"showed"<<" title"<<argv[1]<<" info: "<<argv[2]<<endl;
msg(argv[1],argv[2]);
}else{
cout<<argv[0]<<":Usage:title infomation";
}
}