我正在努力学习F#,我正在研究Suduko Solver程序[链接在这里]( http://www.ffconsultancy.com/dotnet/fsharp/sudoku/code/1/sudoku.fs )! 最初的程序是在Visual Studio 2005中开发的;但当我尝试使用Microsoft Visual Studio 2010再次构建它时,我遇到了一些错误。我手动添加了对System.Drawing和System.Windows.Forms的引用,但VS2010似乎仍然无法识别Idoms。 有什么想法可以让这个程序在VS2010下编译吗?
因此修复错误消息
需要进行以下更换
n -> string_of_int n : n->n.ToString() Byte.of_int 0 : 0uy IEnumurable : Seq m.(y).(i) : m.[y].[i] //this appears with similar syntax a few times - just need to change round to square brackets
不确定你为什么会 init_control 如果没有定义,那么一旦解决了其他问题,就可以了。
init_control