發表文章

變數與字串的轉換

字串轉變數 int value1 = atoi(argv[1]); double value2 = atof(argv[2]); // 憑印象打的,待確認。 變數轉字串 char str[20]; sprintf(str, "clip%d.txt", value1); // 建立檔名 FILE *fout = fopen(str, "w+"); // 寫檔

Reference大全

https://blog.xuite.net/chuangyf0917/blog/13649687-C%2FC%2B%2B%E4%B9%8B%E6%8C%87%E6%A8%99+%28pointer%29%EF%BC%8C%E5%8F%83%E8%80%83+%28reference%29+%E8%A7%80%E5%BF%B5%E6%95%B4%E7%90%86%E8%88%87%E5%B8%B8%E8%A6%8B%E5%95%8F%E9%A1%8C+

遠端複製與備份檔案

https://blog.gtwang.org/linux/ssh-command-tutorial-and-script-examples/ https://blog.gtwang.org/linux/rsync-local-remote-file-synchronization-commands/

英文單字

admissible 有資格進入的 pervasive 普遍的 彌漫的;滲透的 stochastic 隨機的 Intuition 直觀 Incompatible 矛盾不相容的 contiguous 接觸 鄰近的

LCM

最小公倍數lcm 先求最大公倍數(用輾轉相除法互mod%)

C shell 輸入/輸出重導向(I/O Redirection)

http://linux.vbird.org/linux_basic/0320bash/csh/no3-2.html 結論: 要把螢幕上的字轉到檔裡面 > aaa.txt (用>>不會覆寫)