break; }
if (ctrl_ch != '\n') paint(); scanf("%c", &ctrl_ch); } }
3.2调试与测试
3.2.1算法调试过程中出现的问题及解决方法
--------------------Configuration: 4 - Win32 Debug-------------------- Compiling... 4.cpp
f:\学习\c语言\ex1\4.cpp(288) : error C2065: 'MAXN' : undeclared identifier f:\学习\c语言\ex1\4.cpp(288) : error C2057: expected constant expression f:\学习\c语言\ex1\4.cpp(288) : error C2466: cannot allocate an array of constant size 0
f:\学习\c语言\ex1\1.cpp(288) : error C2133: 'data' : unknown size 执行 cl.exe 时出错.
1.obj - 1 error(s), 0 warning(s)
解决方法:对MAXN进行定义,在第三行加入#define MAXN 35
3.2.2主要程序运行结果 运行开始