📄 beeps.c
字号:
#include <stdio.h>
#include <stdlib.h>
void main (int argc, char *argv[])
{
int count; // The number of times to sound the speaker
int i; // The number of times the speaker has been sounded
// Determine the number of times to ring the bell
count = atoi(argv[1]);
for (i = 0; i < count; i++)
putchar(7); // ASCII 7 sounds the speaker
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -