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

📄 utility.h

📁 一个帮助你学习英语的软件~~很不错的咯~~ 对功能又做了改进~大家支持下哈~
💻 H
字号:
//PK 2006/07/24 - 10/18
#pragma once

#include <string>
using std::string;
using std::wstring;
#include <stack>
using std::stack;
#include <ctime>

wstring c2w(const string & txt);
string w2c(const wstring & txt);

string ulong2c(const unsigned long l);
wstring ulong2w(const unsigned long l);

wstring time2w(const unsigned int seconds);

class CRandom
{
public:
	CRandom();
	int get_number(int low, int up);
};

template <class T>
void
clear_stack(stack<T> & container)
{	//PK 2006/08/16
	while (!container.empty()) {
		delete container.top();
		container.pop();
	}
}

template <typename TRETURN>
TRETURN * 
move_point(void * p, int offset)
{	//PK 2006/08/29 - 30
	return reinterpret_cast<TRETURN *>(reinterpret_cast<char *>(p) + offset);
}

⌨️ 快捷键说明

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