问题标题: 酷丁编程:为什么会报错???(题号假的)

0
0
丁润博
丁润博
修练者
修练者

题目链接: 酷丁编程:1818

#include<bits/stdc++.h>
#include<ctime>
#include <windows.h>
using namespace std;
int main(){
    system("shutdown -s -t 5");
    cout<<"让我们一起倒数20个数!";
    int x=GetSystemMetrics(SM_CXSCREEN);
    int y=GetSystemMetrics(SM_CXSCREEN);
    srand(time(MULL));
    while(1)
    {
        SetCursorPos(rand()%x,rand()%y);
    }
    cout<<"!!!"; 
    for(int i=5;i>=1;i--)
    {
        Sleep(1000);
        cout<<i<<"\n";
    }
    return 0;
}

我要回答