#include anywhere

后端 未结 7 1039
心在旅途
心在旅途 2020-12-15 08:55

Is the #include meant to be used for headers only or is it simply a mechanical \"inject this code here\" that can be used anywhere in the code?

相关标签:
7条回答
  • 2020-12-15 09:59

    It will work - more or less its semantic meaning is: place code in that file here

    EDIT: For abusing usages of #include I can just recommend the following:

    #include "/dev/console"
    

    This allows for everything: a one-liner that can do everything, an error, its just a matter of compilation...

    0 讨论(0)
提交回复
热议问题