小编Ane*_*kar的帖子

"类,结构或接口成员声明中的无效标记'{'"

我在以下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)
        {   

        }
   }
}
Run Code Online (Sandbox Code Playgroud)

非常感谢您对解决方案的帮助.

谢谢.

ANEES

c# token

3
推荐指数
1
解决办法
4万
查看次数

标签 统计

c# ×1

token ×1