叨b叨
Wh_0336
When I become a big man, I will also change a cartoon avatar.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
x&(-x)和x&(x-1)
int countOne(int x){ // 函数返回x的二进制中1的个数 int n = 0; while(x){ x = x & (x - 1); // 赋值! ++n; } return n;}int countOne2(int x){ // 函数返回x的二进制中1的个数 int n = 0; while(x){ x -= x & (-x); // 自减! ++n; } return n;}...原创 2020-11-06 15:40:15 · 291 阅读 · 0 评论 -
点击过渡动画
#d1{ height: 100px; width: 100px; background-color:violet; transition: all 1s ease-in-out 0s;}#bg #d1{ height: 200px; width: 50px; background-color: tomato;}点击过渡动画 ...原创 2019-12-04 11:01:46 · 223 阅读 · 0 评论 -
const的一些
就上几个代码举例子拿指针举个例子 int a=3,b=5; const int* p=&a;// (*p)=1;//const在前面,使指针不能修改它所指向的内容(const距离int比较近,所以不能修改int的数据了) p=&b; int* const q=&a; (*q)=1;// q=&b;//const在后面,使指针不能再次指向别的地方(co原创 2018-11-24 21:52:28 · 211 阅读 · 0 评论 -
priority_queue 的数据成员访问
优先队列 priority_queue 里面有一个protect 成员 c,这个c就是一个vector,里面放了队列里的元素。由于是protect的,正常情况下无法访问。下面是 stl_queue.h 里面的声明。 protected: // See queue::c for notes on these names. _Sequence c; _...原创 2018-11-27 08:32:57 · 666 阅读 · 1 评论 -
多项式分解 java
例如:输入 A B 2输出 A²+2AB+B²我的代码自动转成小写,要求次数不超过13(爆int,懒得用大数)import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.FileNotFoundException;im...原创 2019-06-12 20:17:40 · 662 阅读 · 0 评论 -
Windows下用Python+bat+计划任务实现每天更换桌面为Windows聚焦
Windows下用Python+bat+计划任务实现每天更换桌面为Windows聚焦这篇文章整合了很多网络资源…有关Python中的各种包,没有的自己百度pip进去就好. 嫌pip速度慢可以换国内源.from PIL import Imageimport osimport timeimport win32guiimport win32conimport win32apidef...原创 2019-07-30 00:26:25 · 605 阅读 · 0 评论
分享