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

📄 nml_oi.cc

📁 Source code for an Numeric Cmputer
💻 CC
字号:
/********************************************************************* Description: nml_oi.cc*   NML operator interface messages for errors, text, and display**   Derived from a work by Fred Proctor & Will Shackleford** Author:* License: LGPL Version 2* System: Linux*    * Copyright (c) 2004 All rights reserved.** Last change: * $Revision: 1.5 $* $Author: paul_c $* $Date: 2005/05/23 16:34:14 $********************************************************************/#include "nml_oi.hh"void  NML_ERROR::update(CMS * cms){    cms->update(error, NML_ERROR_LEN);}void NML_TEXT::update(CMS * cms){    cms->update(text, NML_TEXT_LEN);}void NML_DISPLAY::update(CMS * cms){    cms->update(display, NML_DISPLAY_LEN);}int nmlErrorFormat(NMLTYPE type, void *buffer, CMS * cms){    switch (type) {    case NML_ERROR_TYPE:	((NML_ERROR *) buffer)->update(cms);	break;    case NML_TEXT_TYPE:	((NML_TEXT *) buffer)->update(cms);	break;    case NML_DISPLAY_TYPE:	((NML_DISPLAY *) buffer)->update(cms);	break;	// unknown type    default:	return 0;		// 0 signifies didn't find    }    return 1;			// 1 signifies found it}

⌨️ 快捷键说明

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