QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2226|回复: 2

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

[复制链接]
发表于 2007-1-12 02:42:38 | 显示全部楼层 |阅读模式
哪位高手帮我解决这道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
发表于 2007-1-28 12:22:23 | 显示全部楼层
程序一样,你再看下Makefile编写方法就可以了.
回复

使用道具 举报

发表于 2007-4-3 11:40:32 | 显示全部楼层
现在才看到这个问题,^_^,如果楼主还需要的话,就和我联系吧!
[email protected]
makefile 就只要一句话就可以了(p.cpp  p.h) makefile
p:p.cpp p.h
(tab 键)g++ -o p p.cpp p.h
编译时只要运行make命令即可
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-19 04:18 , Processed in 0.051635 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表