三種排序遍歷的主體說(shuō)的都是當(dāng)前節(jié)點(diǎn), 所以可以理解為:前序: 中左右中序: 左中右后序: 左右中這里有個(gè)例子, 輸出結(jié)果:pre :AB...
![240](https://upload.jianshu.io/collections/images/1842845/gnu.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
三種排序遍歷的主體說(shuō)的都是當(dāng)前節(jié)點(diǎn), 所以可以理解為:前序: 中左右中序: 左中右后序: 左右中這里有個(gè)例子, 輸出結(jié)果:pre :AB...
初學(xué)socket時(shí), 只會(huì) read, write, 那是阻塞的工作方式, 想和多個(gè)socket 工作, 要用到多線程,今天來(lái)學(xué)習(xí)一下使用sel...
assert.h 斷言, 不滿足就退出程序 ctype.h 入?yún)⑹且粋€(gè) char'' errno.h 包含一個(gè)全局變量 errno float....
-Wall 顯示所有編譯問(wèn)題 gcc -Wall main.c indent 縮進(jìn)工具 indent -kr -i4 main.c debug ...
0x01 主要涉及對(duì)象 struct timespec struct tm localtime_r完成 tm 向 timespec 的轉(zhuǎn)換 0x...
0x01 等待子線程返回結(jié)果 pthread_join 會(huì)阻塞當(dāng)前線程, 直到子線程返回結(jié)果 運(yùn)行結(jié)果: 0x02 mutex 上鎖超時(shí) 輸出結(jié)...
靜態(tài)編譯 gcc -static hello.c 靜態(tài)編譯參數(shù) -static, 然后使用 size 命令查看執(zhí)行文件的內(nèi)存分布大小. mai...
0x01 配置CLion 使用 gcc作為編譯工具 1.增加一個(gè)toolchain, 命名為gcc, 手動(dòng)選擇 gcc, g++ 位置gcc 2...