小编Bee*_*ype的帖子

^ 运算符的用途是什么?

运算符是^用来做什么的?它不适用于幂函数:

#include <iostream>

int main(){
    int x, y;

    cout << (x^y) << endl; /* this is the unkown (X^Y)*/

    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c++ operators xor

-4
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

operators ×1

xor ×1