㈠ c語言如何製作無限彈窗代碼
方法步驟如下:
1、首先打開計算機,在計算機的桌面上右鍵點擊,選中「文件文檔」選項。
㈡ 求一個桌面右下角彈窗代碼 類似QQ新聞消息的那種。要C語言的
那個是富媒體彈窗,是一種網頁插件,所以不是病毒,所以金山和360不會提示,那個x不是關的,是點開的,如果沒有猜錯的話,x旁邊會有機關,可以關掉,或者在右下角靠近時間的那個區域.
㈢ c語言無限彈窗程序出問題無法編譯
首先,預處理器沒有文件就不說,注釋反了。。
#include<stdio.h>
intmain()
{
intc,j;
nihao:
printf("1:死機 2:刷屏 請選擇:");
scanf("%d",&c);
if(c==1){
system("shutdown-s-t600");//600為自動關機的等待時間,若選擇0則為瞬間關機
}
elseif(2==c){
printf("非常可恨的人,殘劍要懲罰你! ");
for(j=0;j<10;++j)//j<10為彈窗的數量,如果改為100,則為彈出100個對話框
system("start");
}
else{
printf("你輸入錯誤了孩子,請重新輸入! ");
gotonihao;
}
return0;
}
ok. 給你優化了下,排版等。C很優雅。很強大。玩的時候也要努力。
㈣ 如何用C語言寫代碼,彈出很多對話框,就是作弄人的那種
#include<windows.h>
staticconstchar*msg[]={
"整你沒商量xx",
"整你沒商量sdf",
"整你沒商量xxd",
"整你沒商量xx",
"整你沒商量..",
"整你沒商量..",
"整你沒商量..e"
//可以寫很多
};
intmain()
{
inti;
for(i=0;i<sizeof(msg)/sizeof(msg[0]);i++)
{
if(i%2)
{
MessageBox(NULL,msg[i],"HeHeHeHe",MB_YESNOCANCEL);
}
else
{
MessageBox(NULL,msg[i],"HeHeHeHe",MB_ABORTRETRYIGNORE);
}
}
return0;
}
㈤ 用c語言如何實現彈除對話框
#include
#include
char format[]="%s%s ";
char hello[]="Hello";
char world[]="world";
HWND hwnd;void main(void)
asm
//push NULL
//call dword ptr GetMoleHandle
//mov hwnd,eax push MB_OK mov eax,offset world push eax mov eax,offset hello push eax push 0//說明此處不能將前面注釋掉代碼處得到的hwnd壓棧,否則對話框彈不出來。
call dword ptr MessageBox
}
}
WINDOWS程序MessagBox
WINDOWS或控制台 assert
C/C++ code
// crt_assert.c
// compile with: /c
#include <stdio.h>
#include <assert.h>
#include <string.h>
void analyze_string( char *string ); // Prototype
int main( void )
{
char test1[] = "abc", *test2 = NULL, test3[] = "";
printf ( "Analyzing string '%s' ", test1 ); fflush( stdout );
analyze_string( test1 );
printf ( "Analyzing string '%s' ", test2 ); fflush( stdout );
analyze_string( test2 );
printf ( "Analyzing string '%s' ", test3 ); fflush( stdout );
analyze_string( test3 );
}
// Tests a string to see if it is NULL,
// empty, or longer than 0 characters.
void analyze_string( char * string )
{
assert( string != NULL ); // Cannot be NULL
assert( *string != '