How to install new units (i mean includes ex: stdio.h) for my C
How to install new units (开发者_开发百科i mean includes ex: stdio.h) for my C, and how to download more?
put the header file on the same folder as your main source file, ex:
/folder /-->main.c
-->function.h -->function.c
then on main.c include it by writing :
#include "function.h"
the quotes are used to include a header file that's on the same folder as your c source file u can also write your own and include them like above.
You're looking for libraries. The headers (normally) just contain information to tell the compiler about the content of the library. There are quite a few C libraries to be found, covering all sorts of different topics. Of course, SourceForge isn't the only place to look -- Github and Google code would be a couple more obvious ones.
精彩评论