当前时区 GMT+8, 现在时间是 2008-9-6 00:08 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 哪位高手帮我解决这道linux脚本题,我想了很长时间都没有搞
zhangzimu88
新手上路
Rank: 1



UID 235280
精华 0
积分 19
帖子 5
阅读权限 10
注册 2007-1-9
来自 中国
状态 离线
发表于 2007-1-12 02:42  资料  短消息  加为好友 
哪位高手帮我解决这道linux脚本题,我想了很长时间都没有搞

哪位高手帮我解决这道linux脚本题,我想了很长时间都没有搞定

哪位高手帮我解决这道linux脚本题,我想了很长时间都没有搞定,我列在下面
Write an ANSI C code. Use a Makefile to build it (including compile and link) into binary file.
The function of this binary file should be:
Read a serial of numbers from a given file, and then find the Top 5 maximum numbers.
You should give:
1. Makefile ( hint : one main file and one sub-routine file )
2. all C source code
3. the whole procedure of how you compile and link

顶部
lsyer
新手上路
Rank: 1


UID 213027
精华 0
积分 37
帖子 25
阅读权限 10
注册 2006-3-12
状态 离线
发表于 2007-1-28 12:22  资料  主页 短消息  加为好友 
程序一样,你再看下Makefile编写方法就可以了.





xxxxxxxxxxxxxxxxxxx
欢迎访问我的博客
顶部
lovechinesepeop
新手上路
Rank: 1



UID 239321
精华 0
积分 15
帖子 6
阅读权限 10
注册 2007-3-28
状态 离线
发表于 2007-4-3 11:40  资料  短消息  加为好友  QQ
现在才看到这个问题,^_^,如果楼主还需要的话,就和我联系吧!
xiaoqingsnnu@yahoo.com
makefile 就只要一句话就可以了(p.cpp  p.h) makefile
p:p.cpp p.h
(tab 键)g++ -o p p.cpp p.h
编译时只要运行make命令即可





坚持一个目标
顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP