#include <iostream>
#include <iomanip>
#include "Circle.h" // Circle class declaration file
int main()
{
int PrintVal = 9;/*按整型输出,默认右对齐*/printf("%d\n",PrintVal);/*按整型输出,补齐4位的宽度,补齐位为空格,默认右对齐*/printf("%4d\n",PrintVal);/*按整形输出,补齐4位的宽度,补齐位为0,默认右对齐*/printf("%04d\n",PrintVal);/*按16进制输出,默认右对齐*/ printf("%x\n",PrintVal);/*按16进制输出,补齐4位的宽度,补齐位为空格,默认右对齐*/printf("%2x\n",PrintVal);/*按照16进制输出,补齐4位的宽度,补齐位为0,默认右对齐*/printf("%02x\n",PrintVal);/*按8进制输出,默认右对齐*/printf("%o\n",PrintVal);/*按8进制输出,补齐4位的宽度,补齐位为空格,默认右对齐*/printf("%4o\n",PrintVal);/*按照8进制输出,补齐4位的宽度,补齐位为0,默认右对齐*/printf("%04o\n",PrintVal);
}
输出结果