我已经在我的C#控制台应用程序中声明了字符数组。FormatException被未处理发生
我的代码:
char[] address = new char[30];
char[] blood_Grp = new char[10];
public void getdata()
{
Console.WriteLine("enter your address");
// here I am getting FormatException was unhandled exception
address[i] = Convert.ToChar(Console.ReadLine());
}
请帮我治好我的编码..
请编辑您的帖子,并使用代码标记来格式化你的代码,同时也包括你在哪里得到异常的堆栈跟踪。 – mattias