摘要: 我们从已有f2.dat文件中读取10个数据,将他们排好序之后再存放到f2.dat中。 #include <iostream> #include <fstream> #include<string> #include<cmath> using namespace std; int main( ) { 阅读全文
posted @ 2020-07-13 20:05 为红颜 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 1. 计算三角形面积: 首先判断 是否构成三角形,在进行判定。并抛出错误处理。 #include <iostream> #include <string> #include<cmath> using namespace std; double floor(double x, double y, do 阅读全文
posted @ 2020-07-13 18:17 为红颜 阅读(213) 评论(0) 推荐(0) 编辑