gpt4 book ai didi

c++ - 如何在 Xcode 中包含

转载 作者:IT老高 更新时间:2023-10-28 22:08:24 28 4
gpt4 key购买 nike

我试图在我的 C++ 代码中包含头文件 bits/stdc++,但编译器似乎不支持它。有什么办法让它工作吗?

我使用 OS X Yosemite 10.10.2 和 Xcode 6.1.1。

最佳答案

您可以通过从此处复制 stdc++.h 文件来做到这一点: https://gist.github.com/reza-ryte-club/97c39f35dab0c45a5d924dd9e50c445f

然后你可以像这样在你的 c++ 文件中包含这个文件:

 //suppose the file is in your home folder, here my username is reza
#include "/Users/reza/stdc++.h"

关于c++ - 如何在 Xcode 中包含 <bits/stdc++>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28994148/

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