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

📄 help.txt

📁 本程序是用纯C语言编的一个基于命令行的四则运算计算器。主要用于计算四则运算表达式的值
💻 TXT
字号:
                           帮助文档
〈命令简介〉
程序运行后,要求输入[]中的命令
  *****************************************************************
  *                       Command Menu                            *
  *  1. to open Command menu                           [menu]     *
  *  2. to calculate value of arithmetic expression    [run]      *
  *  3. to learn more details about this program       [more]     *
  *  4. to quit this program                           [quit]     *
  *  5. to clean the screen                            [clean]    *
  *  6. to convert number base(default:decimal)        [convert]  *
  *  7. to learn how to use the program                [help]     *
  *                                                               *
  *****************************************************************
输入run
Your Command:run				// 执行四则运算
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
-8+(56.5*2-45)/2+9*(123.45-3.2)*4
=========================
*  value = 4.355000e+003  *
=========================
Continue to calculate or back to command menu?
Continue--->'C',Back--->B (C/B)?c		// Continue
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
8+(-9*6-5)*2
=========================
*  value = -1.100000e+002   *
=========================
Continue to calculate or back to command menu?
Continue--->'C',Back--->B (C/B)?b		// Back to Command Menu
  *****************************************************************
  *                       Command Menu                            *
  *  1. to open Command menu                           [menu]     *
  *  2. to calculate value of arithmetic expression    [run]      *
  *  3. to learn more details about this program       [more]     *
  *  4. to quit this program                           [quit]     *
  *  5. to clean the screen                            [clean]    *
  *  6. to convert number base(default:decimal)        [convert]  *
  *  7. to learn how to use the program                [help]     *
  *                                                               *
  *****************************************************************
Your Command:convert				// 执行进制转换
  *****************************************************************
  *                          Convert Menu                         *
  *          <Binary>                          <Octal>            *
  *  [1]. binary to octal            [4]. octal to binary         *
  *  [2]. binary to decimal          [5]. octal to decimal        *
  *  [3]. binary to hexadecimal      [6]. octal to hexadecimal    *
  *                                                               *
  *          <Decimal>                       <Hexadecimal>        *
  *  [7]. decimal to binary          [10].hexadecimal to binary   *
  *  [8]. decimal to octal           [11].hexadecimal to octal    *
  *  [9]. decimal to hexadecimal     [12].hexadecimal to decimal  *
  *                                                               *
  *****************************************************************
Please enter your choice:[1]			// binary to octal
Please input a binary:11110
The decimal code is:30.000000
The octal code is:36
Continue to convert or Select a new mode or Back to command menu?
Continue--->C,Select--->S,Back--->B (C/S/B)?s	// Select the transform mode 
  *****************************************************************
  *                          Convert Menu                         *
  *          <Binary>                          <Octal>            *
  *  [1]. binary to octal            [4]. octal to binary         *
  *  [2]. binary to decimal          [5]. octal to decimal        *
  *  [3]. binary to hexadecimal      [6]. octal to hexadecimal    *
  *                                                               *
  *          <Decimal>                       <Hexadecimal>        *
  *  [7]. decimal to binary          [10].hexadecimal to binary   *
  *  [8]. decimal to octal           [11].hexadecimal to octal    *
  *  [9]. decimal to hexadecimal     [12].hexadecimal to decimal  *
  *                                                               *
  *****************************************************************
Please enter your choice:[9]			// decimal to hexadecimal
Please input a decimal:174
The hexadecimal code is:ae
Continue to convert or Select a new mode or Back to command menu?
Continue--->C,Select--->S,Back--->B (C/S/B)?b	// Back to Command Menu
  *****************************************************************
  *                       Command Menu                            *
  *  1. to open Command menu                           [menu]     *
  *  2. to calculate value of arithmetic expression    [run]      *
  *  3. to learn more details about this program       [more]     *
  *  4. to quit this program                           [quit]     *
  *  5. to clean the screen                            [clean]    *
  *  6. to convert number base(default:decimal)        [convert]  *
  *  7. to learn how to use the program                [help]     *
  *                                                               *
  *****************************************************************
Your Command:clean				// 清除屏幕

Your Command:menu				// 显示Command Menu
……
Your Command:help				// 显示帮助信息
……
Your Command:more				// 显示程序代码详细清单
……
Your Command:quit				// 退出程序,显示感谢信息
   *=================Thanks for using my program!================*
   *     If you have some suggestions, just contact with me.     *
   *                 telephone : 32051904                        *
   *                 QQ : 27512609                               *
   *                 e-mail : julyleecn@hotmail.com              *
   *==================My sincere thanks to you!==================*
Press any key to continue


错误警告(表达式)
Your Command:run
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
a+1
Error 1! Invalid charactor!
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
*6-4
Error 2! The first character cannot be '.',')','*','/'.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
9.2.3+6
Error 3! more than one dots in a number.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
6++5
Error 4! '+','-','*','/','.' cannot be put together or at last or before ')'.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
4+5*()
Error 5! '(' cannot be put at last or followed by ')','*','/','.'.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
4-(9+5)6-9
Error 6! ')' cannot be followed by numbers and '('.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
9(5+6)
Error 7! Numbers cannot be followed by '('.
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:
5+(6-4))
Error 8! The parenthesis are not matched
You should input arithmetic expression again!
Please input arithmetic expression, never input a space or a tab.
Press Enter button to end input:

出错保护(命令行)
Your Command:ran
Wrong Command!

Continue to calculate or back to command menu?
Continue--->'C',Back--->B (C/B)?a
Wrong Command!
Input again(C/B)?

Please enter your choice:[0]
Invalid choice! choose again:[ ]

Continue to convert or Select a new mode or Back to command menu?
Continue--->C,Select--->S,Back--->B (C/S/B)?a
Wrong Command!
Input again(C/S/B)?

〈欢迎使用帮助文档〉

⌨️ 快捷键说明

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