What is a “translation unit” in C++

前端 未结 11 722
既然无缘
既然无缘 2020-11-21 07:56

I am reading at the time the \"Effective C++\" written by Meyers and came across the term \"translation unit\".

Could somebody please give me an explanation of:

11条回答
  •  一个人的身影
    2020-11-21 08:28

    A translation unit is for all intents and purposes a file (.c/.cpp), after it's finished including all of the header files.

    http://msdn.microsoft.com/en-us/library/bxss3ska%28VS.80%29.aspx

提交回复
热议问题