术语“源文件”和“源文件”之间有什么区别?和“翻译单元”? [英] What's the difference between the terms "source file" and "translation unit"?

查看:183
本文介绍了术语“源文件”和“源文件”之间有什么区别?和“翻译单元”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

源文件和翻译单元之间有什么区别?

What's the difference between source file and translation unit?

推荐答案

根据C ++标准:


通过预处理指令#include包含的所有头文件和源文件以及减去所有条件包含预处理指令所跳过的任何源行的源文件称为翻译

A source file together with all the headers and source files included via the preprocessing directive #include less any source line skipped by any of the conditional inclusion preprocessing directives is called a translation unit.

这篇关于术语“源文件”和“源文件”之间有什么区别?和“翻译单元”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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