strcurrency.h

来自「What I did with this class is to automat」· C头文件 代码 · 共 40 行

H
40
字号
// StrCurrency.h: interface for the CStrCurrency class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STRCURRENCY_H__2CD273B1_6F36_4633_B965_C80376E0D2EA__INCLUDED_)
#define AFX_STRCURRENCY_H__2CD273B1_6F36_4633_B965_C80376E0D2EA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CStrCurrency  
{
public:
	CStrCurrency(CStrCurrency& other);
	CStrCurrency();
	virtual ~CStrCurrency();
	CString m_Str;

	operator long double();
	operator CString();
	operator COleCurrency();

	const CStrCurrency& operator =(const CStrCurrency& other);

	long double		operator =(long double	ldVal );
	COleCurrency	operator =(COleCurrency ocVal );
	CString			operator =(CString		strVal);


protected:
	void MakeStr(void);
	void MakeLd (void);
	COleCurrency m_Currency;
	long double m_ldCurrency;

};

#endif // !defined(AFX_STRCURRENCY_H__2CD273B1_6F36_4633_B965_C80376E0D2EA__INCLUDED_)

⌨️ 快捷键说明

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