阅读背景:

C源文件的好处包括它自己的头文件

来源:互联网 

I understand that if a source file need to reference functions from other file then it needs to include its header file, but I don't understand why the source file include its own header file. Content in header file is simply being copied and pasted into the source file as function declarations in per-processing time. For source file who include its own header file, such "declaration" doesn't seem necessary to me, in fact, project still compile and link no problem after remove the header from it's source file, so what's the reason for source file include its own header?I understand that if a source file need to refe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: