怎么回事,实在是搞不明白了 !!!
using System;using System.Collections.Generic;
using System.Text;
class Program
{
public static int f(out int ival1, out int ival2);
{
ival1=10;
ival2=20;
return 0;
}
public static void Main()
{
int i,j;
Console.WriteLine(f(out i,out j));
Console.WriteLine(i);
Console.WriteLine(j);
}
}
错误 1 类、结构或接口成员声明中的标记“{”无效 C:\Users\J.Constantine\Documents\Visual Studio 2005\Projects\c#复习\c#复习\Program.cs 7 5 c#复习
错误 2 类、结构或接口成员声明中的标记“=”无效 C:\Users\J.Constantine\Documents\Visual Studio 2005\Projects\c#复习\c#复习\Program.cs 8 14 c#复习
错误 3 类、结构或接口成员声明中的标记“=”无效 C:\Users\J.Constantine\Documents\Visual Studio 2005\Projects\c#复习\c#复习\Program.cs 9 14 c#复习
错误 4 应输入 class、delegate、enum、interface 或 struct C:\Users\J.Constantine\Documents\Visual Studio 2005\Projects\c#复习\c#复习\Program.cs 12 23 c#复习
错误 5 应输入类型、命名空间定义或文件尾 C:\Users\J.Constantine\Documents\Visual Studio 2005\Projects\c#复习\c#复习\Program.cs 19 5 c#复习
求高手帮忙看看啊 !!!