fileio.h

来自「密码大家Shoup写的数论算法c语言实现,windows版本」· C头文件 代码 · 共 54 行

H
54
字号

#ifndef NTL_fileio__H
#define NTL_fileio__H

#include <NTL/tools.h>

#ifndef NTL_STD_CXX

// old C++

#include <fstream.h>

#else

// new C++

#include <fstream>

#endif

#if 0
namespace foo_bar {

class ofstream;
class ifstream;

}
#endif

NTL_OPEN_NNS


void OpenWrite(NTL_SNS ofstream& s, const char *name);

// opens file for writing...aborts if fails

void OpenRead(NTL_SNS ifstream& s, const char *name);

// opens file for reading

char *FileName(const char* stem, const char *ext);

// builds the name "stem.ext"

char *FileName(const char* stem, const char *ext, long d);

// builds the name stem.ext.d

NTL_CLOSE_NNS

#endif


⌨️ 快捷键说明

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