-
Notifications
You must be signed in to change notification settings - Fork 0
/
why_calculator.h
36 lines (34 loc) · 1.24 KB
/
why_calculator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _MAIN_H
#define _MAIN_H
/*
* =====================================================================================
* Filename: why_calculator.h
* Description: including library
* Version: 1.1.2
* Created: 2017.10.26 16:03:50
* Time Used: 10h
* Last Modified: 2017.10.26 16:22
* Last Changed: New functions added
* Author: 伍瀚缘(Tree Wu), [email protected]
* Company: Huazhong University of Science and Technology
* =====================================================================================
*/
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<malloc.h>
#include<stdlib.h>
#define MAXSIZE 500//输入表达式的最大长度
int readinput(char *input,char *buf);//"input.c"
int translate(const char *input, char *repol);//"input.c"
int errorfound(const int index);//"output.c"
int preciquest(void);//"output.c"
void baseoutput(void);//"output.c"
void endingoutput(void);//"output.c"
void outputhelp(void);//"output.c"
void outputresult(double result);//"output.c"
void exectute(void);//"why_calculator.c"
double calculate(char *repol);//"calculating.c"
double numbertrans(const char *dnum);//"calculating.c"
int isint(double n);//"calculating.c"
#endif //_MAIN_H