c++异或运算
来源:互联网 发布:如何删除mac自带软件 编辑:程序博客网 时间:2024/04/29 03:50
#include<iostream>#include<stdio.h>#include<string>using namespace std;int main(){int a = 18;int b = 10;cout << "----------------------" << endl;cout << "| 转换前a=" << a << " |"<< endl;cout << " 转换前b=" << b << " | " << endl;cout << "------------------------" << endl;a = a^b;b = a^b;a = b^a;cout << "----------------------" << endl;cout << "| 转换后a=" << a << " |" << endl;cout << " 转换后b=" << b << " | " << endl;cout << "------------------------" << endl; system("pause");return 0;}
0 0
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C语言异或运算
- C 的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C的|、||、&、&&、异或、~、!运算
- C语言:位异或运算符
- c/c++的|、||、&、&&、异或、~、!运算
- C语言:位异或运算符^
- C语言位运算之异或 ^
- 在Linux下使用RAID(四):创建RAID 5
- MySQL数据库的备份和还原
- 什么是lucene?
- 设计模式-抽象工厂模式(AbstractFactoryPattern)
- 【剑指Offer】替换空格
- c++异或运算
- js cookie操作
- 【Android笔记】多线程与 UI 交互的方法
- Hadoop-2.0命令手册
- IOS afn三方上传图片
- 项目2 - 建设“顺序表”算法库
- linux下pgsql安装步骤
- mysql常见问题
- Linux 修改文件属性