|运算符出错 怎么改C/C++ codeads-iflags & ~adns_if_checkc_freqads-iflags | adns_if_checkc_ente
|= 运算符出错 怎么改
- C/C++ code
ads->iflags &= ~adns_if_checkc_freq; ads->iflags |= adns_if_checkc_entex; } else if (!strcmp(word+12,"entex")) { ads->iflags &= ~adns_if_checkc_freq; ads->iflags |= adns_if_checkc_entex; } else if (!strcmp(word+12,"freq")) { ads->iflags |= adns_if_checkc_freq;- C/C++ code
error C2676: binary '|=' : 'adns_initflags' does not define this operator or a conversion to a type acceptable to the predefined operator1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\aulili\test\cdns.cpp(431): error C3861: 'configparseerr': identifier not found1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\aulili\test\cdns.cpp(439): error C2676: binary '&=' : 'adns_initflags' does not define this operator or a conversion to a type acceptable to the predefined operator1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\aulili\test\cdns.cpp(440): error C2676: binary '|=' : 'adns_initflags' does not define this operator or a conversion to a type acceptable to the predefined operator1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\aulili\test\cdns.cpp(442): error C2676: binary '&=' : 'adns_initflags' does not define this operator or a conversion to a type acceptable to the predefined operator
在c里面可以,在c++ 里面报错怎么改啊 ?
[解决办法]
adns_initflags 是怎么声明的?
[解决办法]
类的没有重载这个操作符.
请重载完成
