C++11 中使用 <cstdio> 代替 <stdio.h> - Clang-Tidy 指南
在 C++11 中,推荐使用 <cstdio> 代替 <stdio.h> 头文件。<cstdio> 是 C++ 标准库中的头文件,提供了与 C 标准库中的 <stdio.h> 相同的功能。使用 <cstdio> 可以更好地与 C++ 语言特性和标准库进行集成。
因此,根据 Clang-Tidy 的建议,在 C++11 中应该将 <stdio.h> 替换为 <cstdio>,以便更好地遵循 C++ 的最佳实践。
原文地址: https://www.cveoy.top/t/topic/fU0e 著作权归作者所有。请勿转载和采集!