C 中的代码中间包含什么? [英] What does the include in the middle of code in C?

查看:17
本文介绍了C 中的代码中间包含什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Please, could you tell me what does the code below do?

...code...
#include file.h
...code...

I was used to put includes a the beggining of each file. I have never seen this before and also wasn't able to find anything in the internet.

解决方案

#include is a pre-processor directive that takes the file given as the argument and dumps its contents in the current file. Typically, this is used to include definitions of commons functions from header files, but there's no necessity to use it in that way.

这篇关于C 中的代码中间包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆