int c;if (b==0) {printf("error!"); return -1;} // 注意用 ==else if (a == 0) return 0; // 注意用 ==c = a - a / b * b; // 就用它计算return c;