在課本第三章的3-28虛擬碼部分
有一行是: step.dir = d+1;
但在Visual Studio C++中直接寫enum運算是會有error的
解決方法是作完運算之後轉型態
step.dir = d+1; -> step.dir = (directions)(d+1);