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