㈠ 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 != '