Description: Calculator, function requirements:
< 1 > user input factor text, determine the program after calculation results, support two operands arithmetic can add, subtract, multiply and divide. For example
User input "1234+ 5678", press enter key, and the screen shows "1234+ 5678 = 6912", then wait for users to enter the next formula text
And as the user input "123/78", press enter key, the screen display "123/78 = 1.577" and then wait for the users to enter the next formula text
Multiplication sign with "*" said
< 2 > operator at most four, can be an integer or a decimal Results if the decimal, keep to three decimal point.
< 3 > fault-tolerant function requirements:
When the user input illegal text expression, the program should prompt the user input error. For example: the user input "12 f5+ 123", the program should be error, and pointed out the mistake content.
Play a part:
< 4 > if the program can also support other operator (such as index, prescribing,
To Search:
File list (Check if you may need any files):
calculator.c