回出来一个对话框,说什么我的字符格式不对,
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dllAdditional information: Input string was not in a correct format.
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dllAdditional information: Input string was not in a correct format.
The point 1 Is :(1,3)
The point 2 Is :(4,2)
兄弟这也太夸张了吧!改成下面这样就可以了。晕!
Console.WriteLine(" Point 1 To Point 2:{0}",MyLine.Length());
Console.WriteLine(" Point 1 To Point 2:"+MyLine.length().ToString());