```cpp
inline void write(int x){
if (x < 0) x = ~x + 1, putchar('-');
if (x > 9) write(x / 10);
putchar(x % 10 + '0');
}
```
by 7The_shy @ 2024-04-20 10:30:55
@[cwfxxty](/user/575138)
```cpp
void writ(int x){
if(x<0){
x=-x;
putchar(45);
}
if(x){
writ(x/10);
}
else return ;
putchar(x%10+48);
}
```
by zsfzmxl @ 2024-04-20 10:31:49
@[7The_shy](/user/890344) 谢谢!
by cwfxxty @ 2024-04-20 10:32:01
@[7The_shy](/user/890344) 已关
by cwfxxty @ 2024-04-20 10:32:16
帖结。
by cwfxxty @ 2024-04-20 10:32:31
@[zsfzmxl](/user/493012) 已关。
by cwfxxty @ 2024-04-20 10:32:51