我正在学习C#,需要使用Visual Studio为学校创建一个简单的税收计算器,我想我遵循了大部分说明,但我不断收到此错误:
Error 1 Operator '*' cannot be applied to operands of type 'object' and 'object' C:\Visual Studio 2012\Projects\CS4\CS4Form.cs 83 32 CS4
Run Code Online (Sandbox Code Playgroud)
我做错了什么,我怎么能让它运作起来?它应该看起来像一个简单的Windows窗体应用程序,它应该在右侧的标签中显示计算.我尽力遵循伪代码,但我不确定缺少什么,我一整天都在努力.这是我的代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
// CS4
namespace CS4
{
public partial class FrmCS4 : Form
{
public FrmCS4()
{
InitializeComponent();
}
// Declare class-level variables and constants
// Class variables are initialized to zero when declared
int cintEmployeeCount;
decimal cdecTotalNetpay;
const decimal cdecFICA_RATE …Run Code Online (Sandbox Code Playgroud)