无聊写了点东西玩 而且全部是在devcpp能编译的
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
void gotoxy(int x,int y){
COORD pos;
pos.X=2*x;
pos.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
int message_box(int type,string title,string text){
int x,len1=title.length()+7,len2=text.length()+7;
char a[len1],b[len2];
for(int i=0;i<len1;++i)
a[i]=title[i];
for(int i=0;i<len2;++i){
b[i]=text[i];
}
x=MessageBox(GetForegroundWindow(),b,a,type);
//type:
//1 确定 取消 2 中止 重试 忽略
//3 是 否 取消 4 是 否
//5 重试 取消 6 取消 重试 继续
//返回值:
//1 确定 2 取消 3 中止(A) 4 重试(R) 5 忽略(I)
//6 是(Y) 7 否(N) 10 重试(T) 11 继续(C)
return x;
//cout<<message_box(1,"title","test");
}
int get_html(string url,string pos){
// ifstream in;
// ofstream out; 暂时没用
string s1="powershell (new-object System.Net.WebClient).DownloadFile( '",s2="','",s3="')";
string all=s1+url+s2+pos+s3;
int len=all.length()+7;
char command[len];
for(int i=0;i<len;++i)
command[i]=all[i];
int x=system(command);
return x;
//cout<<get_html("https://www.luogu.com.cn/","D:\\test.txt"); 返回值为 0 则成功
}
int main(){
return 0;
}