Visual Studio设置<bits/stdc++.h>可用

这篇具有很好参考价值的文章主要介绍了Visual Studio设置<bits/stdc++.h>可用。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Visual Studio设置<bits/stdc++.h>可用

前言

在VS中写一些代码时,需要引用大量的库;希望引用万能头文件<bits/stdc++.h>,发现找不到;这里分享一下如何在VS中设置<bits/stdc++.h>可用

环境

Windows 10
Visual Studio 2019文章来源地址https://www.toymoban.com/news/detail-739016.html

步骤

  1. 进入VS安装目录;本人安装目录为D:\VS2019
  2. 依次进入如下的目录D:\VS2019\VC\Tools\MSVC\14.29.30133\include
    PS:数字那里每个人安装不同,可能会有出入
  3. 如果include目录下没有bits目录;新建bits目录
  4. 在目录中新建stdc++.h文件;或者下载文件。

stdc++.h内容

// C++ includes used for precompiling -*- C++ -*-

// Copyright (C) 2003-2018 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.

// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// <http://www.gnu.org/licenses/>.

/** @file stdc++.h
 *  This is an implementation file for a precompiled header.
 */

// 17.4.1.2 Headers

// C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cuchar>
#include <cwchar>
#include <cwctype>
#endif

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <codecvt>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif

#if __cplusplus >= 201402L
#include <shared_mutex>
#endif

#if __cplusplus >= 201703L
#include <charconv>
#include <filesystem>
#endif

到了这里,关于Visual Studio设置<bits/stdc++.h>可用的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • Microsoft Visual Studio × 出现错误,无去启动

    Microsoft Visual Studio × 出现错误,无去启动

    Microsoft Visual Studio × 出现错误,无去启动visual studio。 streamJsonRpc.RemotelnvocationException:cannot find service module info file ‘ldentitystorageservice.servicehub.service.json’ in ‘c:}ProgramFilesvicrosoft visual studio2022,Communitycommon7ServiceHubiservices’(ErrorKind:servicevodulelnfoNotFound) IdentityStorageServiceOld.servicehub

    2024年02月16日
    浏览(12)
  • 【Microsoft Visual Studio安装问题】Microsoft.VisualStudio.Setup.Configuration

    【Microsoft Visual Studio安装问题】Microsoft.VisualStudio.Setup.Configuration

    成功撒花 ~~~ 真的太不容易了 ~ 在安装visual studio的过程中真的状况百出,通过查看日志找到 系统策略禁止安装此设备,请与系统管理员联系 因此赶紧百度这个问题。。。 百度上有很多关于这个问题的解决方法,尝试了很多种但都不太完全,最终解决方法如下: 点击win+R输入

    2024年02月12日
    浏览(11)
  • Microsoft Visual Studio 2022 透明背景修改(快捷方法)

    Microsoft Visual Studio 2022 透明背景修改(快捷方法)

    之前一直用的2019,现在换电脑了下的2022,想自定义背景,发现以前的方法不好用了。目前有两种方法可以把背景设置成透明的然后添加自己的图片。(参考了以前的经验帖子,链接就放下面了): (5条消息) Visual Studio 2022界面美化教程_CN天狼-CSDN博客 (5条消息) Microsoft Visual

    2024年02月06日
    浏览(80)
  • 安装Microsoft Visual Studio Installer Projects 2022

    安装Microsoft Visual Studio Installer Projects 2022

    安装 Microsoft Visual Studio Installer Projects 2022 点击download:  离线安装网址: Microsoft Visual Studio Installer Projects 2022 - Visual Studio Marketplace 提示关闭时安装,遵照执行即可~

    2024年02月11日
    浏览(16)
  • Microsoft Visual studio 2022 如何自定义背景(详细) Visual studio 2022 怎么改背景和幻灯片播放(自定义背景)

    Microsoft Visual studio 2022 如何自定义背景(详细) Visual studio 2022 怎么改背景和幻灯片播放(自定义背景)

    1.新建一个项目,项目名称无所谓 进入编辑页面后,点击拓展管理拓展联机 右边搜索框搜索 ClaudiaIDE, 键入后点击回车搜索,然后点击下载,等待下载完成,(这里下载进度条一直不动的话可能是网络不好的原因,我这里已经安装好了) 下载完成后,关闭visual studio 2022,桌

    2024年02月06日
    浏览(45)
  • Visual Studio 2022 右键单击项目没有出现View | View Class Diagram(Visual Studio 无法使用类设计器)

    Visual Studio 2022 右键单击项目没有出现View | View Class Diagram(Visual Studio 无法使用类设计器)

    当我们在Solution Explorer窗口右键单击项目时,快捷菜单中没有出现“查看”,或者出现了“查看”,但是“查看”里没有View Class Diagram。 首先你要确保你安装了类设计器。 其次就与你的项目有关了,类设计器不是所有项目都可以用滴。 类设计器在.NET Core项目中是无法使用的

    2024年02月11日
    浏览(16)
  • visual studio中的【console.WriteLine()】日志没有打印出来

    visual studio中的【console.WriteLine()】日志没有打印出来

    开发环境:visual studio 2022 软件类型:winForm程序 代码里面,我用Console.WriteLine()输出的日志,在【视图-输出】窗口里找不见: using System.Diagnostics 启用Debug.WriteLine替换原来的Console.WriteLine

    2024年02月11日
    浏览(9)
  • Visual Studio 2022 取消 Microsoft符号服务器的方法

    Visual Studio 2022 取消 Microsoft符号服务器的方法

    最近使用 Visual Studio 2022 调试时,发现一直在加载某些DLL文件,造成调试卡住,等了很久都不正常 点击取消 符号服务器的加载,马上就能正常的进入调试,好像这个对调试影响不大 但是每次调试,都会加载这个:【Microsoft符号服务器】 菜单栏【工具】-- 【选项】 在搜索栏里

    2024年02月13日
    浏览(17)
  • Microsoft Visual Studio Installer Projects下载安装太慢

    Microsoft Visual Studio Installer Projects下载安装太慢

    方法1:直接到官网下载 方法2:直接下载点击这里

    2024年02月15日
    浏览(16)
  • 使用Microsoft Visual Studio编写C#上位机(串口助手)

    使用Microsoft Visual Studio编写C#上位机(串口助手)

    最近跟着刘工写了一套用于单片机与电脑通信的串口助手,此处将自己手敲的代码记录下来,供大家一起学习交流。 一、程序界面   程序界面 程序界面说明    二、代码(Form1.cs)  三、备注 此处在Form1的属性中,将AutoSize设为True,AutoScroll设为True,AutoScaleMode设为Font,以应

    2024年02月11日
    浏览(18)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包