⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compare.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -