实验5-2 符号函数 (10分) 代码: int sign( int x ) { if (x > 0) return 1; else if (x == 0) return 0; else return -1; }