Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. exit : DOUBLECLICK TIME TO ENABLE exit
标签: nothing program windows simple
上传时间: 2014-03-06
上传用户:ruan2570406
#include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h> #include<sys/types.h> #define PROMPT_STRING "[myshell]$" #define QUIT_STRING "exit\n" static char inbuf[MAX_CANON] char * g_ptr char * g_lim extern void yylex() int main (void){ for( ){ if(fputs(PROMPT_STRING,stdout)==EOF) continue if(fgets(inbuf,MAX_CANON,stdin)==NULL) continue if(strcmp(inbuf,QUIT_STRING)==0) break g_ptr = inbuf g_lim = inbuf + strlen(inbuf) yylex() } return 0 }
上传时间: 2016-12-31
上传用户:colinal
int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.exit to Windows\n") printf("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0
上传时间: 2017-01-06
上传用户:gonuiln
单片机播放音乐实验(汇编) org 0000h ajmp main org 000bh ajmp timer0 org 0030h timer0: clr ea djnz 33h,exit mov 33h,53h djnz 32h,exit mov 32h,52h djnz 31h,exit1 mov 31h,51h djnz 30h,exit1 setb f0 ajmp exit exit1: cpl p2.1 exit: setb ea reti main: mov tmod,#02h mov ie,#82h mov th0,#254 mov tl0,#254 mov dptr,#tab main1: mov 40h,#00h
上传时间: 2013-12-31
上传用户:thinode
//获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //取得信息 width = vga_getxdim[] height = vga_getydim[] colors = vga_getcolors[] //绘图 for[i=0 i<colors i++]{ vga_setcolor[i] vga_drawline[0, i, width-1, i] }
标签: vga_getcurrentmode vga_init oldmode vga_ha
上传时间: 2014-12-19
上传用户:maizezhen
//获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //获得当前的模式 mode = vga_getcurrentmode[] info = vga_getmodeinfo[mode]
标签: vga_getcurrentmode vga_init oldmode vga_ha
上传时间: 2017-03-24
上传用户:ecooo
//结构 struct fb_fix_screeninfo finfo struct fb_var_screeninfo vinfo //打开设备 fd = open["/dev/fb0", O_RDWR] if [!fd] { printf["Cannot open framebuffer device.\n"] exit[1] } //取得固定信息 if [ioctl[fd, FBIOGET_FSCREENINFO, &finfo]] { printf["Error reading fixed information.\n"] exit[1] } if [ioctl[fd, FBIOGET_VSCREENINFO, &vinfo]] { printf["Error reading variable information.\n"] exit[1] }
标签: struct fb_fix_screeninfo fb_var_screeninfo finfo
上传时间: 2014-08-16
上传用户:gut1234567
Program Description: The program asks the user to choice from the menu an option A. Check to see if a number is prime. B. Count the number of vowels in a line. X. exit the program.
标签: Description the Program program
上传时间: 2017-04-08
上传用户:磊子226
应用UNIX的fork()等系统调用,编写一个c程序具有以下功能: a) 实现Shell的基本功能,包括有:打印提示符;接受和分析命令行(滤去无效的空格、tab符号以及换行符等);执行命令(要有出错处理;输入exit或者bye退出);返回父进程; b) 处理后台程序(不需要wait) c) 处理多行
上传时间: 2014-12-07
上传用户:gtf1207
SMC takes a state machine stored in a .sm file and generates a State pattern in twelve programming languages. Includes: default transitions, transition args, transition guards, push/pop transitions and Entry/exit actions. See User Manual for more info.
标签: programming generates machine pattern
上传时间: 2013-12-25
上传用户:gaome