在C++11中,推荐使用<cstdio>代替<stdio.h>头文件。<cstdio>是C++标准库中的头文件,提供了与C标准库中的<stdio.h>相同的功能。使用<cstdio>可以更好地与C++语言特性和标准库进行集成。

因此,根据Clang-Tidy的建议,在C++11中应该将<stdio.h>替换为<cstdio>,以便更好地遵循C++的最佳实践。

Clang-Tidy Inclusion of deprecated C++ header stdioh; consider using cstdio instead在c++11中要执行以上更改吗

原文地址: https://www.cveoy.top/t/topic/jdm3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录