ÄÄλ¸ßÊÖ°ïÎÒ½â¾öÕâµÀlinux½Å±¾Ìâ,ÎÒÏëÁ˺ܳ¤Ê±¼ä¶¼Ã»Óи㶨
<TABLE class=tborder id=post1631857 style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" cellSpacing=0 cellPadding=4 width="100%" align=center border=0><TBODY><TR vAlign=top><TD class=alt1 id=td_post_1631857 colSpan=2>ÄÄλ¸ßÊÖ°ïÎÒ½â¾öÕâµÀ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
<!-- / message -->
</TD></TR><TR><TD class=alt2></TD></TR></TBODY></TABLE> Õâ¸öÓ¦¸Ãµ½C°æÈ¥£¬
code ÓÃfgetsµÃµ½µÄbuf,È¡Ç°Ãæ5¸ö¾ÍÐÐÁË£¬
makefile ûÓо³£Ó㬲»ÖªµÀÓÃautomakeÉú³ÉÄܲ»ÄÜÂú×ãÄãµÄÒªÇó
ÖÁÓÚ±àÒëºÍÁ¬½ÓµÄ¹ý³Ì£¬²»ÖªµÀ£¬º¹£¡£¨Õâ¶¼ÊÇgcc¸ÉµÄÊÂÇé°É£¡£©
Ò³:
[1]