2012年3月31日

static的变量初值问题

摘要: 1 #include "iostream.h" 2 3 int i=1; 4 5 void others(void) 6 { 7 static int a; 8 static int b; 9 int c(3);10 int i(2);11 cout<<"i: "<<i<<"a: "<<a<<"b: "<<b<<"c: "<<c<<endl;12 }13 14 void main(void 阅读全文

posted @ 2012-03-31 13:57 Xilinx&Altera 阅读(358) 评论(0) 推荐(0)

导航