摘要: #include<iostream> using namespace std; void foo() { int num = 4; for(int i = 0;i<10;i++) { /* static int snum = num; snum++; cout<<snum<<endl; */ sta 阅读全文
posted @ 2019-02-21 10:58 zengzhaocheng 阅读(741) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; void foo() { static int count = 0; if(count<5) { count++; cout<<count<<endl; foo(); } else { cout<<"count > 5 阅读全文
posted @ 2019-02-21 10:28 zengzhaocheng 阅读(944) 评论(0) 推荐(0) 编辑