1 void Out(int a) //输出一个整型 2 { 3 if(a<0) 4 { 5 putchar('-'); 6 a=-a; 7 } 8 if(a>9) 9 Out(a/10); 10 putchar(a%10+'0'); 11 }