开发者

How to install new units (i mean includes ex: stdio.h) for my C

开发者 https://www.devze.com 2022-12-21 12:10 出处:网络
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,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消