output.h

来自「GPS的串口读取数据过程,并且进行了坐标转换,转化为通用的坐标系」· C头文件 代码 · 共 32 行

H
32
字号
#pragma once

#include "Globe.h"

class output
{
protected:
	output(void)
	{
	}

public:
	virtual ~output(void)
	{
	}

	// a custom error reporter, we just display the error message on std out.
	static void write(const string& msg)
	{
#ifdef OUTPUT_ENABLE
		cout << msg;
#endif
	}

	static void writeln(const string& msg)
	{
#ifdef OUTPUT_ENABLE
		cout << msg << endl;
#endif
	}
};

⌨️ 快捷键说明

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