1.输出
%d就是普通的输出了
%2d是将数字按宽度为2,采用右对齐方式输出,若数据位数不到2位,则左边补空格
%02d,和%2d差不多,只不过左边补0
2.测试
关掉后台的测试就好
b.
[Warning] multi-character character constant [-Wmultichar]
一般来说,字符里面比如'. '含有空格的话,会提示这个警告,但仍然能编译通过
3.取绝对值:
整形abs,长整型labs,浮点型fabs
4.'abs' was not declared in this scope没有申明
math和stdlib
5.