回出来一个对话框,说什么我的字符格式不对,
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dllAdditional information: Input string was not in a correct format.

解决方案 »

  1.   

    结果只有
    The point 1 Is :(1,3)
    The point 2 Is :(4,2)
      

  2.   

    Console.WriteLine(" Point 1 To Point 2:{len}",MyLine.length().ToString());
      

  3.   

    Console.WriteLine(" Point 1 To Point 2:{len}",MyLine.length());\
    兄弟这也太夸张了吧!改成下面这样就可以了。晕!
    Console.WriteLine(" Point 1 To Point 2:{0}",MyLine.Length());
      

  4.   

    Sorry
    Console.WriteLine(" Point 1 To Point 2:"+MyLine.length().ToString());