1.整形%整形只能得出整形。2.浮点数不能取%运算。3.cout.setf(ios::fixed); cout<<setprecision(n);不会改变整形输出,但是会给其他浮点数补或缩至n位。4.string不能用于计算或比较只能存储。