#include <stdio.h>



void park(){

static int count=30;

count=count-1;

printf("the remaining  number of parking spaces:%d\n",count);

}

void main(){

park();

park();

park();

}

机加威信18790284560免费送POS.jpg

C的static变量