c++自制游戏辅助

c++游戏辅助头文件

相当于万能头文件+fstream+windows.h+conio.h

还有一些函数

复制在D盘,取名game.h

在代码里加上下面一行代码:

#include <D:\game.h>

其他什么都不用加,包括using namespace std;

#include <cassert>
#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>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#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>
#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>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <time.h>
using namespace std;
struct str {
	char a[10050];
	int len;
	void cls(char to){
		for (int i = 0;i < len;i++){
			a[i] = to;
		}
	}
	void copy(char c[]){
		for (int i = 0;i < len;i++){
			c[i] = a[i];
		}
	}
	void in(){
		char ch;
		ch = getchar();
		int i = 0;
		while (ch != '\n'){
			a[i] = ch;
			ch = getchar();
			i++;
		}
		len = strlen(a);
	}
	void out(){
		for (int i = 0;i < len;i++){
			putchar(a[i]);
		}
	}
};
inline void fr(long long a){
    long long x = 0,f = 1;
    char ch = getchar();
    while (ch < '0' || ch > '9'){
        if (ch == '-') f = -1;
        ch = getchar();
    }
    while (ch >= '0' && ch <= '9'){
        x = (x << 1) + (x << 3) + (ch ^ 48);
        ch = getchar();
    }
    a = x * f;
}
inline void fw(long long x){
    if (x < 0){
    	putchar('-');
		x = -x;
	}
    if (x > 9) fw(x / 10);
    putchar(x % 10 + '0');
}
struct beibao {
	int bag[2000];
	int l;
};
void dqcd(beibao x){
	ifstream infile;
    ofstream outfile;
    infile.open("存档信息.dll");
    for (int i = 1;i <= x.l;i++){
    	infile >> x.bag[i];
	}
}
void swcd(beibao x){
	ofstream outfile[3];
    outfile[0].open("存档信息.dll");
    for (int i = 1;i <= x.l;i++) outfile[0] << x.bag[i] << endl;
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值