摘要: #include using namespace std; template void qSort(T *a, int left, int right);// 快速排序 template void sW(T *a, T *b); int main(){ int a[] = {3, 4, 5, 12, -1, -33, 90, -44, -23, 100, -1111, -... 阅读全文
posted @ 2018-05-29 21:24 TTYF 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 由于需要安装各种python包,所以需要在Mac中端输入各种pip install xxxxxx的命令。 问题:直接运行pip install xxxxxx后,包会安装到系统自带的2.7版本的Python中,而在用高级版本的Python时会出现仍然缺失这个包的现象。 解决:不用删除系统自带的Pyth 阅读全文
posted @ 2017-09-10 22:35 TTYF 阅读(1810) 评论(0) 推荐(0) 编辑
摘要: 这是第一次在博客上发表随笔,希望可以敦促自己不要浪费时间,努力提升基本功。 1 #include 2 3 class CPU 4 { 5 enum CPU_rank{p1=1,p2,p3,p4,p5,p6,p7}; 6 public: 7 CPU()= default; 8 CPU(enum CPU_rank); 9 ~CPU(){} 10 ... 阅读全文
posted @ 2017-09-07 19:36 TTYF 阅读(483) 评论(0) 推荐(0) 编辑