如何包含< bits/stdc ++>在Xcode中 [英] How can I include <bits/stdc++> in Xcode

查看:97
本文介绍了如何包含< bits/stdc ++>在Xcode中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have tried to include the header file bits/stdc++ in my C++ code, but it seems the compiler doesn't support it. Is there any way to make it work?

我使用OS X Yosemite 10.10.2和Xcode 6.1.1.

I use OS X Yosemite 10.10.2 and Xcode 6.1.1.

推荐答案

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

You can do it by copying stdc++.h file from here: https://gist.github.com/reza-ryte-club/97c39f35dab0c45a5d924dd9e50c445f

然后您可以将文件包含在c ++文件中,如下所示:

Then you can include the file in your c++ file like this:

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

这篇关于如何包含< bits/stdc ++>在Xcode中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆