lang.cpp
来自「this an OOP file which is very easy to u」· C++ 代码 · 共 28 行
CPP
28 行
// Lang.cpp
// Implementation file for the Lang class
#include "Lang.hpp"
using namespace std ;
// Constructor of class Lang
Lang::Lang( string lc )
{
langcode = lc ;
}
// Method: check if defined language == English
bool
Lang::isEnglish()
{
return ( langcode == "en" ) ;
}
// Method: check if defined language == Chinese
bool
Lang::isChinese()
{
return ( langcode == "zh" ) ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?