之前用VS,先是完成了GLUT库下的opengl使用; 然后得知GLUT有些过时,又按照教程接触了GLFW库下,反正对我来说是有些复杂。

今天正式试一试用VS来写ACM的题目,发现不能定义string? 一直改,才发现头文件应该是<string>而不是<cstring>; 那么如果我想用<bits/stdc++.h>呢。

需要在VS的include库里面建立叫bits的文件夹,然后在下面建立一个stdc++.h的c文件。

里面保存各种常见头文件即可。

// 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 <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 <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

而更多的设置可以在属性里面修改。

1:打开c++一般默认使用编译头,可以在属性里修改。

2:c++语言标准,改为stdc++17;

....

最新文章

  1. [php-src]Php扩展的多文件编译
  2. 安卓、swiper标准的文字滚动
  3. DataTable 导到Excel
  4. Spark ML聚类分析之k-means||
  5. hdu5882 Balanced Game
  6. GCT考试如何准备
  7. [转载] I wish you enough
  8. How to Type(dp)
  9. Spring MVC执行的流程
  10. [高级软件工程教学]团队Alpha阶段成绩汇总
  11. SpringBoot部署jar与war
  12. 【Linux常用命令】
  13. 关于input的焦点事件
  14. vue-router 注意事项
  15. java反序列化漏洞原理研习
  16. top高级技能
  17. Jmeter接口测试(八)cookie设置
  18. vue视频: 自定义指令 &amp;&amp; 拖拽 &amp;&amp; 自定义键盘信息
  19. WPF自定义进度条
  20. Oracle 体系结构一 概述

热门文章

  1. vue判断图片为空或者图片加载不成功时显示默认图片
  2. 【转帖】HBase读写的几种方式(二)spark篇
  3. 寻找最小矩形边框--OpenCv
  4. php数组到json的转变
  5. 测试函数——python编程从入门到实践
  6. 重新学习Spring2——IOC和AOP原理彻底搞懂
  7. Tomcat6项目移到Tomcat7 提示 404 解决方案
  8. 使用Filezilla Server配置FTP服务器
  9. feign.FeignException: status 400 reading
  10. 自学Python编程的第四天----------来自苦逼的转行人