Question1
来源:互联网 发布:阿里云按量计费 编辑:程序博客网 时间:2024/06/05 00:38
1.short s;
s = s + 1;
s+=1;自动处理。
2.检查是否是类的对象
instanceof
XXX instanceof XXX---->true
"Hello" instanceof String ---->true
3.位运算符 (乘除2的几次方)
<< 左移 3<<2 ---> 3 * 2^2 = 12
>> 右移 3<<1 ---> 3 /2 = 1
无符号右移>>>(没有无符号左移)
最高位是0则全部用0填充,是1则全部用1填充
&与
|或
^异或
~取反
4.交换
(1)temp
(2)+/1*/...
(3)位运算符 ,可避免精度损失的问题
m = m^n
n = m ^ n
m = m ^n
0 0
- Question1
- Question1
- C#上机作业及代码Question1
- question1-在插入排序中运用二元搜索代替线性查找
- question1.Describe a day that you enjoy the most or is the most special for you.
- Java状态机
- OpenCV学习笔记(四十六)——FAST特征点检测features2D OpenCV学习笔记(四十七)——VideoWriter生成视频流highgui OpenCV学习笔记(四十八)——PCA算
- Solr索引pdf.txt.word等文件
- 利用Visual Studio 自带工具查询lib 或者 dll 文件是32位还是64位
- poj 1007 DNA Sorting
- Question1
- python爬虫--BeautifulSoup的简单用法
- 区分JS中的undefined,null,"",0和false
- C++ STL基本容器的使用
- leetcode101题 题解 翻译 C语言版 Python版
- linux 的 socket例子
- softirq, tasklet和workqueue的区别
- ToDo-List-><学习Python>
- Android下设置CPU核心数和频率