以下是引用dragonfly在2007-1-4 10:27:47的发言:
把所有代码写到xiangqi.cpp里VC中编译,结果:
Compiling...
xiangqi.cpp
D:\test\xiangqi.cpp(105) : error C2065: 'gotoxy' : undeclared identifier
D:\test\xiangqi.cpp(113) : error C2065: 'textcolor' : undeclared identifier
D:\test\xiangqi.cpp(115) : error C2065: 'textbackground' : undeclared identifier
D:\test\xiangqi.cpp(124) : error C2065: 'clrscr' : undeclared identifier
D:\test\xiangqi.cpp(274) : warning C4244: '=' : conversion from 'short' to 'char', possible loss of data
Error executing cl.exe.
xiangqi.exe - 4 error(s), 1 warning(s)
好像少某些头文件吧?graphic?
把所有代码写到xiangqi.cpp里VC中编译,结果:
Compiling...
xiangqi.cpp
D:\test\xiangqi.cpp(105) : error C2065: 'gotoxy' : undeclared identifier
D:\test\xiangqi.cpp(113) : error C2065: 'textcolor' : undeclared identifier
D:\test\xiangqi.cpp(115) : error C2065: 'textbackground' : undeclared identifier
D:\test\xiangqi.cpp(124) : error C2065: 'clrscr' : undeclared identifier
D:\test\xiangqi.cpp(274) : warning C4244: '=' : conversion from 'short' to 'char', possible loss of data
Error executing cl.exe.
xiangqi.exe - 4 error(s), 1 warning(s)
好像少某些头文件吧?graphic?
没有任何问题,必须用C编译,(如TC.)
My Blog: www.aiexp.info
虽然我的路是从这里开始的,但是这里不再是乐土.感谢曾经影响过,引导过,帮助过我的董凯,飞燕,leeco,starwing,Rockcarry,soft_wind等等等等.别了,BCCN.