使用位运算进行取模
一般取模 $A mod B$ 12%8=4 如果 $B = 2^n$ 以使用 $&(B-1)$ 代替 $%B$ 来取模. 12&(8 -1) = 4 12&(2^3 –…
If you find that you're not, I hope you have the strength to start all over again.
一般取模 $A mod B$ 12%8=4 如果 $B = 2^n$ 以使用 $&(B-1)$ 代替 $%B$ 来取模. 12&(8 -1) = 4 12&(2^3 –…
man 2 syscalls 查看所有的系统调用 man 2 read查看系统调用read() 在这两个命令中的2都表示我们要在2类(系统调用类)中查询
#include <iostream> #include <cstring> using namespace std; int main(void) { char arr[4]; cout<<“—>”<<endl; cout<< “arr 4 len : “<< strlen(arr)<<endl;…
春水初生, 春林初盛, 春风十里, 不如你。 愿有岁月可首, 且以深情共白头。 — 出自冯唐《三十六大》之二十四里的其三十
左手坐标系 右手坐标系 左手法则 与 右手法则