Include .cpp instead of header(.h)

后端 未结 4 1225
南旧
南旧 2020-12-28 16:46

There are some cases when we include .cpp file instead of standard header file (.h), for example:

#include \"example.cpp\"

instead of

4条回答
  •  再見小時候
    2020-12-28 17:43

    I have used it before and had no problem but I cannot ensure that this is safe. Sometimes this was the only option for me so I used it, otherwise I will use the .h file.

提交回复
热议问题