摘要: 1. 理解C++变量的作用域和生命周期a) 用少于10行代码演示你对局部变量的生命周期的理解 1 #include 2 using namespace std; 3 void p() 4 { 5 int a = 0; 6 cout 2 using namespace std; 3 int main() 4 { 5 int *stack; 6 int a = 10; 7 stack = &a; 8 cout 2 #include 3 #include 4 using namespace std; 5 int main() 6 { 7 ... 阅读全文
posted @ 2013-11-18 00:27 yiming.zou 阅读(172) 评论(0) 推荐(0) 编辑