📄 subject_47820.htm
字号:
<br>内容:启发式搜索(A*算法)、水淹算法都可以
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:最后一根稻草 回复日期:2003-09-02 10:59:24
<br>内容:一楼给的程序我已试着运行过,出现了一大堆错误,不知该怎样纠正。<BR>错误文件如下<BR>Compiling...<BR>Text1.cpp<BR>c:\windows\desktop\text1.cpp(84) : error C2664: 'fgets' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(90) : error C2664: 'atoi' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(91) : error C2664: 'atoi' : cannot convert parameter 1 from 'unsigned char *' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(106) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(108) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(114) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(116) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(122) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(124) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(130) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(132) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(209) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(211) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(215) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(218) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(227) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [80]' to 'char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>c:\windows\desktop\text1.cpp(229) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [80]' to 'const char *'<BR> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>Error executing cl.exe.<BR><BR>Text1.exe - 17 error(s), 0 warning(s)<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:guannaifu 回复日期:2003-09-20 16:44:34
<br>内容:用费洛伊也可以
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -