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;
}