useparam.c

来自「文件名:c语言深入学习必备参考例子 很多经典的c例子:高级的宏定义」· C语言 代码 · 共 24 行

C
24
字号
#include <stdio.h>

void hello_world(void)
 {
   printf("Hello, world!\n");
 }

void hello_count(int message_count)
 {
   int counter;

   for (counter = 1; counter <= message_count; counter++)
     hello_world();
 }

void main(void)
 {
   printf("Display the message twice\n");
   hello_count(2);
   printf("Display the message five times\n");
   hello_count(5);
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?