• 大小: 0.22M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-27
  • 语言: C#
  • 标签: 计算器  计算  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsDemo01
{
    class ClassCalculator
    {
        public int star = 3; //状态
        private static double TextA;     //第一个数
        private static double TextB;     //第二个数
        private static double TextC;     //计算结果
        private static string numDisplay;   //显示结果
        //--------------------------------------------------------

        /// 
        /// 计算器_验证
        /// 

        /// 输入框1
        /// 输入框1
        /// 运算符号
        /// 
        public string Verify(string txtA string txtB int count)
        {
            if (txtA == string.Empty || txtB == string.Empty)
            {
                star = 2;
                return “第一(或二)个数字为空!“;
            }
            if (count == 4)
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-17 16:40  Demo01\
     目录           0  2019-04-17 16:40  Demo01\.vs\
     目录           0  2019-04-17 16:40  Demo01\.vs\WindowsFormsDemo01\
     目录           0  2019-04-17 16:41  Demo01\.vs\WindowsFormsDemo01\v16\
     文件       60416  2019-04-23 09:38  Demo01\.vs\WindowsFormsDemo01\v16\.suo
     目录           0  2019-04-17 16:41  Demo01\.vs\WindowsFormsDemo01\v16\Server\
     目录           0  2019-04-23 09:38  Demo01\.vs\WindowsFormsDemo01\v16\Server\sqlite3\
     文件           0  2019-04-17 16:41  Demo01\.vs\WindowsFormsDemo01\v16\Server\sqlite3\db.lock
     文件      610304  2019-04-18 14:25  Demo01\.vs\WindowsFormsDemo01\v16\Server\sqlite3\storage.ide
     目录           0  2019-04-18 10:25  Demo01\WindowsFormsDemo01\
     文件        1160  2019-04-17 16:40  Demo01\WindowsFormsDemo01.sln
     文件         189  2019-04-17 16:40  Demo01\WindowsFormsDemo01\App.config
     目录           0  2019-04-17 16:40  Demo01\WindowsFormsDemo01\bin\
     目录           0  2019-04-17 16:43  Demo01\WindowsFormsDemo01\bin\Debug\
     文件       19968  2019-04-18 10:25  Demo01\WindowsFormsDemo01\bin\Debug\WindowsFormsDemo01.exe
     文件         189  2019-04-17 16:40  Demo01\WindowsFormsDemo01\bin\Debug\WindowsFormsDemo01.exe.config
     文件       44544  2019-04-18 10:25  Demo01\WindowsFormsDemo01\bin\Debug\WindowsFormsDemo01.pdb
     文件        3012  2019-04-18 10:25  Demo01\WindowsFormsDemo01\ClassCalculator.cs
     文件        2625  2019-04-18 10:12  Demo01\WindowsFormsDemo01\ClassNumScreen.cs
     文件       10377  2019-04-18 10:22  Demo01\WindowsFormsDemo01\Form1.cs
     文件       27095  2019-04-18 10:16  Demo01\WindowsFormsDemo01\Form1.Designer.cs
     文件        6011  2019-04-18 10:16  Demo01\WindowsFormsDemo01\Form1.resx
     目录           0  2019-04-17 16:40  Demo01\WindowsFormsDemo01\obj\
     目录           0  2019-04-18 14:23  Demo01\WindowsFormsDemo01\obj\Debug\
     文件        1435  2019-04-18 08:29  Demo01\WindowsFormsDemo01\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7192  2019-04-18 09:43  Demo01\WindowsFormsDemo01\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2019-04-17 16:40  Demo01\WindowsFormsDemo01\obj\Debug\TempPE\
     文件          42  2019-04-18 09:43  Demo01\WindowsFormsDemo01\obj\Debug\WindowsFormsDemo01.csproj.CoreCompileInputs.cache
     文件         956  2019-04-18 10:20  Demo01\WindowsFormsDemo01\obj\Debug\WindowsFormsDemo01.csproj.FileListAbsolute.txt
     文件        1012  2019-04-18 10:16  Demo01\WindowsFormsDemo01\obj\Debug\WindowsFormsDemo01.csproj.GenerateResource.cache
     文件       11625  2019-04-18 14:23  Demo01\WindowsFormsDemo01\obj\Debug\WindowsFormsDemo01.csprojAssemblyReference.cache
............此处省略12个文件信息

评论

共有 条评论