?? countdown.c
字號:
/* Countdown program. */
# include <stdio.h>
# include <stdlib.h>
# include <ctype.h>
# include <string.h>
void main(int argc, char* argv[])
{
int disp, count;
if(argc < 2)
{
printf("You must enter the length of the count\n");
printf("on the command line. Try again\n");
exit(1); /* 非正常跳出程序 */
}
if(argc==3 && !strcmp(argv[2], "display"))
disp = 1;
else
disp = 0;
for(count = atoi(argv[1]); count; --count)
if(disp)
printf("%d\n", count);
putchar('\a'); /* 將產(chǎn)生蜂鳴 */
printf("Down");
return;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -