gpt4 book ai didi

c++ - 'printf' : identifier not found

转载 作者:太空狗 更新时间:2023-10-29 23:50:29 25 4
gpt4 key购买 nike

我已将 stdio.h 包含到我的 C++ 项目中,为什么我仍然收到此错误?此外,在我添加 #include 之后,我的代码中的 printf() 不再以红色下划线表示存在任何错误。

此外,我想使用函数 format()。在哪个库中找到的?

最佳答案

你必须包含 stdio.h 而不是 cstdio.h

#include <stdio.h>

关于c++ - 'printf' : identifier not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29886869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com