compare.h
来自「浙江大学的悟空嵌入式系统模拟器」· C头文件 代码 · 共 40 行
H
40 行
#ifndef COMPARE_H_INCLUDED
#define COMPARE_H_INCLUDED
#include <string>
#include <fstream>
#include <iostream>
namespace ARM{
class Compare
{
public:
static Compare & instance(void);
~Compare();
//fs = new std::ofstream(filename.c_str(), std::ios::app);
bool open_file(std::string file);
bool write_to_file(std::string content);
bool append_to_file(std::string content);
bool append_to_file(unsigned int val);
bool append_enter();
bool compare(std::string f1, std::string f2, int line_sum);
void clear(std::string file);
private:
std::ofstream * out;
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?