Cfree之万能头函数bits\stdc++.h的添加和注意事项

article/2025/10/15 12:55:23

实现步骤

一、创建一个.txt文件,把下面的代码复制进去

// C++ includes used for precompiling -*- C++ -*-// Copyright (C) 2003-2015 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

二、到安装目录下我的是D:\C-Free5\mingw\include,创建一个叫bits文件夹

三、将上述.txt文件变成.h文件,并存入bits文件夹中

完成上述的步骤就可以运用了
在这里插入图片描述

注意事项

在cfree的安装目录不能含有空格,原先我的安装目录是D:\Program Files (x86)\C-Free5\mingw\include,就会报错[Error] g++.exe: Files: No such file or directory


http://chatgpt.dhexx.cn/article/Q6edWdHR.shtml

相关文章

cfree mysql_如何配置CFree才能开发MySql数据库应用

环境&#xff1a; IDE&#xff1a;CFree5.0 操作系统&#xff1a;Windows XP Prefessional sp3 数据库版本&#xff1a;MySQL-5.0.22-community-nt 连接器版本&#xff1a;mysql-connector-c-noinstall-6.0.2-win32 编译器&#xff1a;GCC for windows 4.5.0 2。将Mysql开发包的…

c语言为什么不能自动free,求大神帮忙看看 为什么cfree没有报错但是就是运行不了...

求大神帮忙看看 为什么cfree没有报错但是就是运行不了 #include #include #include #define Insert 1 //增加订单 #define Query 2 //查找订单 #define Update 3 //修改订单 #define Delete 4 //删除订单 #define List 5 //列出所有订单 #define Quit 0 //退出系统 FILE *…

关于CFree5.0中设置支持C99模式

关于C-Free5.0中设置支持C99模式&#xff0c;分为以下几个步骤&#xff1a; 1.打开C-Free5.0&#xff0c;在左上角找到‘构建&#xff08;B&#xff09;’ 2.展开‘构建&#xff08;B&#xff09;’&#xff0c;点击最下方的‘构建选项’ 3.在‘编译’一栏看到红色框区域&am…

C-Free 5 加 TDM-GCC编辑器搭建C/C++开发环境

本文所需要的安装程序下载地址&#xff1a;https://download.csdn.net/download/fangfang635344731/10705407 1.安装C-Free 5&#xff0c;这一步重点是安装路径绝对不能有空格&#xff01;&#xff01;&#xff01;我的安装路径为“C:\C-Free5”。 2.安装TDM-GCC&#xff0c;…

C语言基础入门:C-Free5设置支持C99标准

问题&#xff1a; 在使用C-Free 5.0调试程序时&#xff0c;编译提示不支持C99模式&#xff0c;错误&#xff01; 具体问题如下图所示&#xff1a; 解决方法1&#xff1a;对已创建工程的设置&#xff0c;仅对该工程有效。 右键点击“文件列表窗口”中的工程 从上到下&#x…

Cfree-5各种抽风解决办法

最近好像笔记本单步调试用不了&#xff0c;本想去Cfree吧求助&#xff0c;没想到首页就有个和我问题一毛一样的&#xff0c;还有大神在楼下给出了解答&#xff0c;好开森&#xff01;赶紧记录&#xff08;chaoxi&#xff09;到这啦&#xff0c;免得以后抽风。 我这里是最近变成…

cfree5文件标签混乱处理。

有时cfree5并不听话&#xff0c;文件列表标签会乱显示&#xff0c;非常影响心情&#xff1a; 如上面红线内部分&#xff0c;怎么也处理不了。 以前用cfree4安装后再安装5可以处理&#xff0c;但最近处理不了。琢磨了一下&#xff0c;发现原来解决办法很简单&#xff1a; 一、对…

cfree5更新C++11特性

昨天在调试程序的时候&#xff0c;发现有些最新的函数Cfree并不支持&#xff0c;因为最新出来的C11特性不满足。C11标准较之前的版本在性能上有很大改变&#xff0c;具体请查阅百度或谷歌&#xff0c;谷歌现在进不去了&#xff0c;那就翻墙吧。 好了&#xff0c;首先我们还是如…

Cfree5可以JAVA_C语言中free函数的使用详解

free函数是我们再写C语言程序时常用的函数&#xff0c;但是使用时需要注意&#xff0c;一不小心很肯能会引起吐核。 注意&#xff1a;free函数与malloc()函数配对使用&#xff0c;释放malloc函数申请的动态内存。对于free(p)这句语句&#xff0c;如果p 是NULL 指针&#xff0c;…

在Cfree5里使用多行快捷注释的方法

1.打开cfree5&#xff0c;点击上方 工具 选项。 2.点击 工具 选项后&#xff0c;进入“环境选项” 3.进入环境选项后就会发现上方有四个选项&#xff0c;点击“快捷键”这个选项&#xff0c;里面会出现很多操作的快捷键&#xff0c;往下翻就能找到快捷多行注释的选项了 4.此时点…

配置cfree 5 支持C++11

最近想学c的一些用法&#xff0c;但Cfree并不支持&#xff0c;所以在大牛的帮助下配置了一下cfree。 c-free5.0版本已经可以支持c99标准。由于CFree5.0自带的GCC版本只有3.4.0&#xff0c;并不支持C11&#xff0c;所以首先得去下载完整支持C11的4.8.1版本——TDM-GCC-64&#x…

C语言基础入门:C-Free5新建C语言工程

C语言 基础开发----目录 步骤1&#xff1a;打开软件 双击打开C-Free 5 步骤2&#xff1a;新建工程 当打开C-Free5软件的时候&#xff0c;就会弹出以下界面&#xff0c;点击新建工程。 如果没有弹出以上界面&#xff0c;就使用以下方法新建工程。 创建工程名字&#xff0c…

BDD100K数据集高速下载地址(百度网盘)

最近需要BDD100K的数据集&#xff0c;在网上找了好久下载地址&#xff0c;大部分要么不能用&#xff0c;要么下到一半就禁止下载了&#xff0c;气煞我也&#xff0c;还让我加什么qq群&#xff0c;加群&#xff0c;不可能&#xff0c;必须拒绝&#xff0c;因此在找到后第一个和小…

【BDD】BDD入门和工具对比

行为驱动开发&#xff08;英语&#xff1a;Behavior-driven development&#xff0c;缩写BDD&#xff09;是一种敏捷软件开发的技术&#xff0c;它鼓励软件项目中的开发者、QA和非技术人员或商业参与者之间的协作。BDD最初是由Dan North在2003年命名[1]&#xff0c;它包括验收测…

说起BDD,你会想到什么?

在刚接触BDD&#xff08;Behavior Driven Development&#xff0c;行为驱动开发&#xff09;的时候&#xff0c;我以为就是用Cucumber这样的工具来编写场景用例&#xff0c;从而实现自动化测试&#xff0c;甚至很长时间分不清BDD和ATDD(Acceptance test driven development)到底…

BDD - Specflow BDD 执行测试,生成测试报告 VSTest 篇

BDD - Specflow BDD 执行测试&#xff0c;生成测试报告 VSTest 篇 引言VSTest.Console.exe 命令启动命令选项 VSTest.Console.exe 执行测试NUnit 项目MSTest 项目Xunit 项目SpecRun 项目 Specflow 生成测试报告specflow.exe 命令生成 NUnit 项目测试报告生成 MSTest 项目测试报…

行为驱动开发(BDD)你准备好了吗?

GitChat 作者&#xff1a;冰尘 原文&#xff1a;行为驱动开发&#xff08;BDD&#xff09;你准备好了吗&#xff1f; 关注微信公众号&#xff1a;「GitChat 技术杂谈」 一本正经的讲技术 【不要错过文末彩蛋】 这个Chat笔者将会和大家一起探讨下面的主题&#xff1a; 什么是…

BDD - SpecFlow BDD 测试实践 SpecFlow + Xunit

BDD - SpecFlow BDD 测试实践 SpecFlow Xunit 引言创建一个 .NET Framework 项目添加 SpecFlow package添加支持 xUnit NuGet 包App.config 和 packages.config 的变化创建 Spec feature 文件创建 step definition 文件创建一个被测类文件实现 steps执行测试 引言 BDD - Spec…

漫画 | 被TDD/BDD/DDD......“逼疯”的程序员

作为一个程序员&#xff0c;你需要学习编程语言和编程框架。 虽然有些难度&#xff0c;但是你最终能掌握它们&#xff0c;顺利地写出应用程序。 但是&#xff0c;编程行业总是有一些东西&#xff0c;看起来很美&#xff0c;很简单&#xff0c; 但非常难于掌握。 你会理解TDD/DD…

基于BDD的接口自动化框架开箱即用

1、背景说明 项目思想&#xff1a;BDD 行为驱动开发的思想褒贬不一&#xff0c;这里不多说。遵循的宗旨能解决业务痛点的思想就是好思想。 接口测试工具在实际的业务测试场景中往往会遇到一些使用上的局限性&#xff0c;自定义扩展要求技术较高&#xff0c;如果二次开发工具…