标题:C++ headers in one file
取消只看楼主
HJin
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:401
专家分:0
注 册:2007-6-9
 问题点数:0 回复次数:0 
C++ headers in one file

Once in a while, you will find you did not include a header. Here is a simple solution:

writing all of them in one file and include the file:

cpp.h


#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#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>

using namespace std;



in main, you do

#include \"cpp.h\"

int main()
{


return 0;
}



[此贴子已经被作者于2007-10-18 12:31:42编辑过]

搜索更多相关主题的帖子: headers file one 
2007-10-18 12:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-178702-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.103575 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved