argc AND argv[0]

摘要: reference: http://crasseux.com/books/ctutorial/argc-and-argv.html argc stands for argument counts. the "v" of argv[] stands for vector, and argv stand 阅读全文
posted @ 2020-06-26 18:50 鸣动我心 阅读(121) 评论(0) 推荐(0) 编辑

srand+rand() combination

摘要: #include <iostream> #include <cstdlib> /* include to allow rand() to be used */ #include<ctime>/*just used in function: time(NULL)*/ using namespace s 阅读全文
posted @ 2020-01-30 15:29 鸣动我心 阅读(129) 评论(0) 推荐(0) 编辑

TimeMachine没法选择备份盘

摘要: http://www.jianshu.com/p/5f8b4d9a8922 搜出了解决方法,自己分区,还好网络上帮手多,不然自己摸索麻烦了. 搜出了解决方法,自己分区,还好网络上帮手多,不然自己摸索麻烦了. 阅读全文
posted @ 2019-08-25 23:57 鸣动我心 阅读(770) 评论(0) 推荐(0) 编辑

BreakContinuePractice

摘要: Bekerley final exercise 4: Write a function windowPosSum(int[] a, int n) that replaces each element a[i] with the sum of a[i] through a[i + n], but on 阅读全文
posted @ 2019-08-20 19:45 鸣动我心 阅读(345) 评论(0) 推荐(0) 编辑

mac subl执行命令行

摘要: 在macOS Sierra10.12.6,路径应该是这个 (note: 官网说的不对,https://www.sublimetext.com/docs/3/osx_command_line.html 正确路径参考自: https://stackoverflow.com/questions/32915 阅读全文
posted @ 2019-08-17 03:47 鸣动我心 阅读(416) 评论(0) 推荐(0) 编辑