| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 679 人关注过本帖
标题:很简单的问题,请教一下. 只要变换一下顺序就编译出错,这是为什么???
取消只看楼主 加入收藏
jg658237
Rank: 7Rank: 7Rank: 7
来 自:青藏高原
等 级:黑侠
帖 子:224
专家分:529
注 册:2013-8-8
结帖率:100%
收藏
已结贴  问题点数:14 回复次数:0 
很简单的问题,请教一下. 只要变换一下顺序就编译出错,这是为什么???
#include "stdio.h"
#include "conio.h"
#include<stdlib.h>
  void hello_word(void)
{
    printf("hello word\n");
}
void three_word(void)
{
hello_word();
 int counter;

 for(counter=1;counter<=8;counter++)
 printf("hello word\n");
     }  
int main(void)
{
three_word();
system("pause");
return 0;
}
    变换一下其中的先后顺序后为什么编译不出来啊???(颜色部分为变换后的程序)
  #include "stdio.h"
#include "conio.h"
#include<stdlib.h>
 void three_word(void)
{
hello_word();
 int counter;
 for(counter=1;counter<=8;counter++)
 printf("hello word\n");
     }  
 void hello_word(void)
{
    printf("hello word\n");
}

int main(void)
{
three_word();
system("pause");
return 0;
}
搜索更多相关主题的帖子: counter include system return hello 
2013-09-05 21:05
快速回复:很简单的问题,请教一下. 只要变换一下顺序就编译出错,这是为什么? ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011572 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved