zhangzimu88 发表于 2007-1-12 02:42:38

哪位高手帮我解决这道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 发表于 2007-1-28 12:22:23

程序一样,你再看下Makefile编写方法就可以了.

lovechinesepeop 发表于 2007-4-3 11:40:32

现在才看到这个问题,^_^,如果楼主还需要的话,就和我联系吧!
[email protected]
makefile 就只要一句话就可以了(p.cppp.h) makefile
p:p.cpp p.h
(tab 键)g++ -o p p.cpp p.h
编译时只要运行make命令即可
页: [1]
查看完整版本: 哪位高手帮我解决这道linux脚本题,我想了很长时间都没有搞