📄 pound.c
字号:
/* pound.c -- defines a function with an argument */
#include <stdio.h>
void pound(int n); /* ANSI prototype */
int main(void)
{
int times = 5;
char ch = '!'; /* ASCII code is 33 */
float f = 6.0;
pound(times); /* int argument */
pound(ch); /* char automatically -> int */
pound((int) f); /* cast forces f -> int */
return 0;
}
void pound(int n) /* ANSI-style function header */
{ /* says takes one int argument */
while (n-- > 0)
printf("#");
printf("\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -