读书笔记
jackbai1990
这个作者很懒,什么都没留下…
展开
-
C/C++中的static
static 是静态变量的声明关键字,今天才从《C专家编程》中知道它的定义时的赋值只在第一次起作用,多的不说,直接看代码:#include void func(int x){ int s = 1; printf("s = %d x = %d\n",s,x); s = 0;}int main(){ func(1); func(2);原创 2012-05-02 18:32:26 · 563 阅读 · 0 评论 -
《C专家编程》中关于const的笔记
#include int main(){ #1 //const used in data which means the data is unchangable //and it must assigned when defined const int x = 10;// x = 6; //assignment of read-only variable 'x' int b =原创 2012-04-23 21:40:05 · 580 阅读 · 0 评论 -
Yii中使用gii连接数据库报错CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied
在使用http://www.larryullman.com/2009/11/07/creating-models-views-and-controllers-in-yii-2/教程时,遇到如题目描述的问题,本来准备在文章下面评论做笔记的,发现“连接被重置”,开代理去评论,发现代理IP在blacklist上,于是只好写在这里And now I want to record原创 2013-03-31 09:46:13 · 8825 阅读 · 5 评论