📄 expin.h
字号:
// ExpIn.h: interface for the ExpIn class.
// 输入表达式
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EXPIN_H__54C7C223_B097_422C_AAAE_9B59E04DC0F2__INCLUDED_)
#define AFX_EXPIN_H__54C7C223_B097_422C_AAAE_9B59E04DC0F2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream.h>
#include <stdio.h>
#include <string.h>
class ExpIn
{
public:
ExpIn();
virtual ~ExpIn();
char Exp[100]; //长度暂定100,存储输入表达式
int length;
};
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
ExpIn::ExpIn()
{//构造函数
cout<<"******************************************************************"<<endl;
cout<<"Input the Expression:"<<endl;
cout<<"(Add '#' before and after the expression!!!)"<<endl;
length=strlen(gets(Exp));
//cout<<"Input Expression is: "<<Exp<<endl;
//int i;
//for(i=0;i<length;i++)
// cout<<"Exp["<<i<<"]="<<Exp[i]<<endl;
//cout<<"The length of the Expression is:"<<length<<endl;
}
ExpIn::~ExpIn()
{//析构函数
}
#endif // !defined(AFX_EXPIN_H__54C7C223_B097_422C_AAAE_9B59E04DC0F2__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -