Skip to content
  • algorithm
  • language
  • linux
  • storage
  • tool
  • virtualization
  • web
  • Archive
  • About Me

hui's blog

If you find that you're not, I hope you have the strength to start all over again.

使用位运算进行取模

2021年2月4日2021年5月15日 ephuizi

一般取模 $A mod B$ 12%8=4 如果 $B = 2^n$ 以使用 $&(B-1)$ 代替 $%B$ 来取模. 12&(8 -1) = 4 12&(2^3 –…

Read More→

使用man 查询函数的使用方法

2021年1月25日 ephuizi

man 2 syscalls 查看所有的系统调用 man 2 read查看系统调用read() 在这两个命令中的2都表示我们要在2类(系统调用类)中查询

c++ strlen 与 sizeof

2021年1月19日2021年1月19日 ephuizi

#include <iostream> #include <cstring> using namespace std; int main(void) { char arr[4]; cout<<“—>”<<endl; cout<< “arr 4 len : “<< strlen(arr)<<endl;…

Read More→

愿有岁月可首

2021年1月17日2021年1月17日 ephuizi

春水初生, 春林初盛, 春风十里, 不如你。 愿有岁月可首, 且以深情共白头。 — 出自冯唐《三十六大》之二十四里的其三十

常见的坐标系

2020年12月14日 ephuizi

左手坐标系 右手坐标系 左手法则 与 右手法则

Posts pagination

← 1 … 12 13 14 … 32 →
Copyright © 2025 hui's blog 粤ICP备2021003374号-1.
Theme: Pure Blog by WP Hait
↑