因为这些函数是在别的文件假设A中声明和定义的,但如果它们需要在另一些文件中假设B使用,就必须外部(extern)声明。GlobalPrototypes.h是把所有这类函数的外部声明放在一起,然后如果B文件需要使用,直接包含GlobalPrototypes.h头文件就可以了。
If a post answers your question, please mark it with the "verify answer" button.
因为这些函数是在别的文件假设A中声明和定义的,但如果它们需要在另一些文件中假设B使用,就必须外部(extern)声明。GlobalPrototypes.h是把所有这类函数的外部声明放在一起,然后如果B文件需要使用,直接包含GlobalPrototypes.h头文件就可以了。
If a post answers your question, please mark it with the "verify answer" button.
举报