我在下面的 C# 代码中收到错误“类、结构或接口成员声明中的无效标记 '{'”。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static int a, b;
void add(int x, int y);
{
int c= x+y;
Console.WriteLine("addition is " + char);
}
static void Main(string[] args)
{
}
}
}
您在解决问题方面的帮助将不胜感激。
谢谢你。
阿内斯