Dzwebs.Net

撰写电脑技术杂文十余年

C语言如何调用函数

Admin | 2007-12-29 18:58:05 | 被阅次数 | 15082

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

  本教程,我们来学习,如何调用C语言中的函数

  程序源代码:

  #include <stdio.h>

  void hello_world(void)

  {

  printf("Hello, world!\n");

  }

  void three_hellos(void)

  {

  int counter;

  for (counter = 1; counter <= 3; counter++)

  hello_world();/*调用此函数*/

  }

  void main(void)

  {

  three_hellos();/*调用此函数*/
  }


该杂文来自: 算法杂文

上一篇:C语言的gotoxy()与clrscr()函数实例

下一篇:C经典算法:使用选择法对10个数进行排序

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计