calc.h

来自「CD_《Palm OS编程实践》」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef CALC_H
#define CALC_H
//////////////////////////////////////////////////////////////////////////////
// calc.h
// Definitions for the generic calculation routines.
// Copyright (c) 1999, Robert Mykland.  All rights reserved.
//////////////////////////////////////////////////////////////////////////////

///////////////////////
// Global Prototypes //
///////////////////////

void calcAdd( void );			// Queue an add operation
void calcAppend( int );			// Append a digit
void calcChangeSign( void );	// Change the sign of the entry
void calcClear( void );			// Clear/reset the calculator
void calcDivide( void );		// Queue a divide operation
void calcEquals( void );		// Finish the current operation
void calcExponent( void );		// Start gathering the exponent
void calcMultiply( void );		// Queue a multiply operation
void calcPoint( void );			// Start gathering the fraction
void calcSubtract( void );		// Queue a subtraction operation

//////////////////////
// Global Constants //
//////////////////////

#define MAX_NUMBER_SIZE		40

#endif	// CALC_H

⌨️ 快捷键说明

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