Q为什么这段代码
short int s; scanf("%d", &s);
A在转换时%d, scanf需要一个指向int的指针。要转换成short int,请使用%hd。(另请参见问题 12.9 表格。)
由 托管