Google默认不跳转国别浏览器

摘要: http://so.le.com/s?wd=%s&from=pc&index=0&ref=click 修改hosts后生效的方法: Windows开始 -> 运行 -> 输入cmd -> 在CMD窗口输入 1 ipconfig /flushdns Linux终端输入 1 sudo rcnscd re 阅读全文
posted @ 2016-04-24 20:28 校长1991 阅读(237) 评论(0) 推荐(0)

C语言的time函数

摘要: #include int fun() { clock_t start,finish; double time; start = clock(); /*测试时间的代码*/ finish = clock(); time = (double)(finish - start)/CLOCKS_PER_SEC;// 精度为一毫秒 printf("ti... 阅读全文
posted @ 2016-03-22 16:35 校长1991 阅读(133) 评论(0) 推荐(0)

git 提示出错信息:fatal:remote origin already exists

摘要: 解决办法如下 1,先输入git remote rm origin 2, 在输入git remote add 阅读全文
posted @ 2016-03-22 16:26 校长1991 阅读(146) 评论(0) 推荐(0)

mac 下添加环境变量

摘要: 打开文件.bash_profile 阅读全文
posted @ 2016-03-22 16:20 校长1991 阅读(122) 评论(0) 推荐(0)

Mac OS X 下 TAR.GZ 方式安装 MySQL 5.7(转)

摘要: 与 MySQL 5.6 相比, 5.7 版本在安装时有两处不同: 初始化方式改变, 从 scripts/mysql_install_db --user=mysql 初始化方式变成了 bin/mysqld --initialize --user=mysql 方式; 初始密码生成改变, 5.6 的版本在 阅读全文
posted @ 2016-03-22 15:56 校长1991 阅读(215) 评论(0) 推荐(0)

关于tcpl习题4-14定义宏swap(t,x,y)

摘要: 题意要求宏,能交换t类型的两个参数。由于愚昧,没读懂题意。于是在网上查到答案: #define SWAP(t,x,y) (t temp;temp = x;x = y;y = temp;) 虽然懂了意思但用gcc写了个例子编译失败。 #include<stdio.h> #define SWAP(t,x 阅读全文
posted @ 2016-03-07 23:39 校长1991 阅读(932) 评论(0) 推荐(0)