| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1135 人关注过本帖
标题:一个小程序,为什么编译连接不成功
取消只看楼主 加入收藏
冷冰冰
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
快速回复:一个小程序,为什么编译连接不成功
数据加载中...
 
   



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

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