2013年11月18日
摘要: 我真的非常讨厌C++,随便写写吧。理解C++变量的作用域和生命周期 #include2 using namespace std;3 char *s(){4 char b[] = “come on";5 return b;6 }7 int main(void){8 cout 2 using namespace std; 3 int *s1; 4 int *s2; 5 void getstring{ 6 int *a = new int(1); 7 int b = 1; 8 s1 = a; 9 ... 阅读全文
posted @ 2013-11-18 09:09 wwtbuaa 阅读(135) 评论(0) 推荐(0) 编辑