欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
作用域及初始化問題
[打印本頁]
作者:
xiaojuan
時間:
2014-9-17 14:30
標題:
作用域及初始化問題
#include<stdio.h>
void trystat(void);
int main (void)
{
int count;
for (count=1; count<=3; count++)
{
printf ("Here comes iteration%d :\n",count);
trystat( );
}
}
void trystat(void)
{
int fade = 1;
static int stay =1; //靜態變量,只進行一次初始化,所以從1開始
printf ("fade = %d and stay= %d \n",fade++,stay++);
}
Here comes iteration 1 :
fade = 1 and stay = 1
Here comes iteration 2 :
fade = 1 and stay = 2
Here comes iteration 3 :
fade = 1 and stay = 3
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1