cfile.h

来自「成熟的RPG引擎,Flysky发布. 斜视角引擎.」· C头文件 代码 · 共 21 行

H
21
字号
// |//////////////////////////////梦幻水晶游戏程序 V1.0///////////////////////////////|
// ||     ;;;;;;     ;;         ;;    ;;           ;,;;        ;;    <;     ;;    ;; ||
// ||     ;.         ;;          ;,  ;;           ;,           ,;  ;;        ;,  ;;  ||
// ||     .;;;;;     ,,           ; ;.             ;;          ;.;;           ; ;.   ||
// ||     ;;         ;;            ;.                ;;        .;;;            ;.    ||
// ||     ..         ,,            ,;                ,.        ;;  ;;          ,;    ||
// ||     ;,         ;;;;;;        .,             ;;;,        ;;    <;         .,    ||
// |//////////////////////////////////////////////////////////////////////////////////|
//文件类
#pragma once

int GetFileLength(char *name); //获取文件的长度
bool IsFile(char *name); //判断是否有此文件

string& replace_all(string& str,const string& old_value,const string& new_value);
string& replace_all_distinct(string& str,const string& old_value,const string& new_value);
string& Delete_String(string& str,int pos,int length);
bool IsToo(string& str,char *str1); //是否是一样的

static char syh[]={CHAR(34),CHAR()};//双引号的显示变量
static char Space[]={0x32};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?