有个比严重的问题。
这个只能用于 int.和char
用 double,或者float 是编译报错
F:\vctemp\diao.cpp(15) : error C2296: '^' : illegal, left operand has type 'double'
F:\vctemp\diao.cpp(15) : error C2297: '^' : illegal, right operand has type 'double'
F:\vctemp\diao.cpp(15) : error C2296: '^' : illegal, left operand has type 'double'
F:\vctemp\diao.cpp(15) : error C2297: '^' : illegal, right operand has type 'double'
F:\vctemp\diao.cpp(15) : error C2296: '^' : illegal, left operand has type 'double'
F:\vctemp\diao.cpp(15) : error C2297: '^' : illegal, right operand has type 'double'