日期:2014-05-17 浏览次数:20775 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace test
{
class MessageHandler
{
private static MethodInfo[] mi = typeof(MessageHandler).GetMethods();
private ComplexNumber c1 = new ComplexNumber();
private ComplexNumber c2 = new ComplexNumber();
public enum CplNum { real, image };
public struct Digit
{
byte value;
public Digit(byte value)
{
if (value < 0
------解决方案--------------------
value > 9)
throw new ArgumentException();
this.value = value;
}
public static implicit operator byte(Digit d)
{
return d.value;
}
public static explicit operator Digit(byte b)
{