2009.10.22
函数声明中 定义默认值
函数定义中不用定义
void printS(string str,int b=1);
void printS(string str,int b){
static int index=0;
index++;
if(b != 0 ){
for(int i=0;i<index;i++){
cout<<str<<endl;
}
} else cout<<str<<endl;
}