?? 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");
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -