다음 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)
{
}
}
}
귀하의 도움을 주시면 대단히 감사하겠습니다.
감사합니다. 당신이 거기에 세미콜론하고 잘못된 변수 이름이 있기 때문에 오류가 있습니다
Anees
큰 도움을 쓰기 ...... 정말 감사합니다 .... 지금은 잘 작동하고 있습니다. –