徒手找到 stdc++.h : 藏得挺深的
本帖最后由 额外减小 于 2023-1-11 15:52 编辑使用dev-c++编程时,将光标移至头文件名处,会显示出路径。按ctrl+click可以查看内容。
然而,我在写c++的代码时,引用#include <bits/stdc++.h>却一直没有显示。
(我也不知道是怎么回事,有大佬可以解释吗)
最近我在Dev-C++的文件夹里随便翻找时,竟意外找到了这个头文件!
进去一看,还真是包罗万象啊。。。
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2014 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 <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
好像真的把平常用到的库函数都包含进去了。
最后附上找到的路径。挺长的,是吧
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\32\bits\stdc++.h 谢谢楼主撒币 {:10_256:} ctrl + f 不行吗? 花好s月圆 发表于 2023-1-11 15:40
ctrl + f 不行吗?
我试试 感谢楼主撒币 sh-5.1$ find /usr/include -name 'stdc++.h'
/usr/include/c++/12.2.0/x86_64-pc-linux-gnu/32/bits/stdc++.h
/usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/stdc++.h
sh-5.1$
我试了下,但不知道怎么用 额外减小 发表于 2023-1-11 15:43
我试了下,但不知道怎么用
sh-5.1$ find /usr/include -name 'stdio.h'
/usr/include/bits/stdio.h
/usr/include/stdio.h
/usr/include/marisa/stdio.h
/usr/include/c++/12.2.0/tr1/stdio.h
/usr/include/bsd/stdio.h
sh-5.1$
页:
[1]