标题:一个小程序,为什么编译连接不成功
取消只看楼主
冷冰冰
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-12-6
 问题点数:0 回复次数:1 
一个小程序,为什么编译连接不成功

新手:

#include (stdio.h)
main()
{
int ifirst,isecond,icha;
ifirst=50,isecond=20;
cha=ifirst-isecond;
printf("ifirst-isecond=%d",icha);

}


这个程序为什么编译不成功呢?在编译连接时,message里显示和对应如下:

error c:\tool\tc2.01\profect\no2.c 1: Bad file name format in
include directive对应#include (stdio.h)里的s

compiling c:\tool\tc2.01\profect\no2.c:对应icha=ifirst-isecond;
里icha中的c.

当在main前加入void后,message里的提示有两条,其中:
error c:\tool\tc2.01\profect\no2.c 1: Bad file name format in
include directive对应#include (stdio.h)里的s 依然存在:
还有一条是:
compiling c:\tool\tc2.01\profect\no2.c:对应的是void main()中的m

搜索更多相关主题的帖子: icha 编译 include tool 
2005-12-07 18:15
冷冰冰
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-12-6
得分:0 
多谢各位诣教,下次不会了,真是的,自己太粗心了。
2005-12-09 17:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-37146-1-1.html




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

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