更新时间:2023-02-05 08:36:49
这是懒惰的编码。使用头文件。是的,他们可以增加编译时间,但他们的意思是,你可以很容易地重新实现你的code大块,或更好,但可能随时另一家开发商。头文件作为你的什么C / C ++
code会做一个模板。这是一个坏主意,放弃或忽略它。
It's lazy coding. Use header files. Yes they can increase compile time but they mean that you can easily re-implement chunks of your code, or better yet, another developer could at anytime. The header file serves as a template for what your C/C++
code is going to do. It's a bad idea to discard or ignore it.