1 if() else() //else if() else() 这是我真实的一个错误 2 int a,b; float c=1-a/b;// c=1-(float)a/b; 整数相除仍是整数 在linux写入新文件,文件名前面别加.txt之类的windows思想,否则写出的结果为乱码