回复:(酒肉弥勒佛)不好意思,我用的是linux,所以不...
我给你看----------------解决方案--------------------------------------------------------
用VC
----------------解决方案--------------------------------------------------------
VC编也是C++
用C做界面和高级语言做的界面,美观还是速度上都差的很远
----------------解决方案--------------------------------------------------------
以下是引用酒肉弥勒佛在2007-7-5 18:27:38的发言:
VC编也是C++
用C做界面和高级语言做的界面,美观还是速度上都差的很远
API写的程序并不慢
----------------解决方案--------------------------------------------------------
warning C4091: 'typedef ' : ignored on left of 'struct ChessDef' when no variable is declared
warning C4091: 'typedef ' : ignored on left of 'struct Site' when no variable is declared
warning C4101: 'rect' : unreferenced local variable
warning C4101: 'j' : unreferenced local variable
error C4716: 'drawChessBroad' : must return a value
error C4716: 'Restart' : must return a value
warning C4715: 'outGame' : not all control paths return a value
请问那两个错误提示,是要求返回那个值?
----------------解决方案--------------------------------------------------------
以下是引用mcquay在2007-7-6 8:26:11的发言:
warning C4091: 'typedef ' : ignored on left of 'struct ChessDef' when no variable is declared
warning C4091: 'typedef ' : ignored on left of 'struct Site' when no variable is declared
warning C4101: 'rect' : unreferenced local variable
warning C4101: 'j' : unreferenced local variable
error C4716: 'drawChessBroad' : must return a value
error C4716: 'Restart' : must return a value
warning C4715: 'outGame' : not all control paths return a value
请问那两个错误提示,是要求返回那个值?
warning C4091: 'typedef ' : ignored on left of 'struct ChessDef' when no variable is declared
warning C4091: 'typedef ' : ignored on left of 'struct Site' when no variable is declared
warning C4101: 'rect' : unreferenced local variable
warning C4101: 'j' : unreferenced local variable
error C4716: 'drawChessBroad' : must return a value
error C4716: 'Restart' : must return a value
warning C4715: 'outGame' : not all control paths return a value
请问那两个错误提示,是要求返回那个值?
我用的是C-FREE编译的 其他的没试
你加两个返回值就去掉那两个错误了
----------------解决方案--------------------------------------------------------
怎么加,请明示,谢!
----------------解决方案--------------------------------------------------------
return 0;
不就行了
----------------解决方案--------------------------------------------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/fl7.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
fl7.exe - 2 error(s), 0 warning(s)
用VC编译还是有错误,这是什么错误啊?
----------------解决方案--------------------------------------------------------
按照C++文件编译试试
----------------解决方案--------------------------------------------------------