I'm working on my own version of corewars and I've come to a halt. I get this error... list:
Edit: the newest code is in the next page.Code:D:\Programs\Projects\Corewars\main.cpp(19) : error C2446: '==' : no conversion from 'char *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast D:\Programs\Projects\Corewars\main.cpp(19) : error C2040: '==' : 'int' differs in levels of indirection from 'char [3]' D:\Programs\Projects\Corewars\main.cpp(19) : error C2446: '!=' : no conversion from 'char *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast D:\Programs\Projects\Corewars\main.cpp(19) : error C2040: '!=' : 'int' differs in levels of indirection from 'char [3]' D:\Programs\Projects\Corewars\main.cpp(24) : error C2446: '!=' : no conversion from 'char *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast D:\Programs\Projects\Corewars\main.cpp(24) : error C2040: '!=' : 'int' differs in levels of indirection from 'char [3]' D:\Programs\Projects\Corewars\main.cpp(24) : error C2446: '==' : no conversion from 'char *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast D:\Programs\Projects\Corewars\main.cpp(24) : error C2040: '==' : 'int' differs in levels of indirection from 'char [3]' D:\Programs\Projects\Corewars\main.cpp(43) : error C2664: 'class std::basic_istream<char,struct std::char_traits<char> > &__thiscall std::basic_istream<char,struct std::char_traits<char> >::get(char &)' : cannot convert parameter 1 from 'char *' to 'char &' A reference that is not to 'const' cannot be bound to a non-lvalue



LinkBack URL
About LinkBacks


