摘要: #include #include #include #include #include #include #include #include using namespace std;ifstream in( "data.txt");ofstream out("out.txt");typedef struct Phone {string phoneno;int count;}Phone;vect... 阅读全文
posted @ 2009-08-14 08:33 莫忆往西 阅读(134) 评论(0) 推荐(0)
摘要: /*-------------------------------------------------*//* This program generates a summary report from a data file that does not have a header record or a trailer record. The data file has two ... 阅读全文
posted @ 2009-08-14 08:28 莫忆往西 阅读(132) 评论(0) 推荐(0)
摘要: /*-------------------------------------------------*//* 这个程序实现计算高度和臭氧含量的线性模型,使用最小二乘法,对于拟合直线 y=mx+b 有: m=[sum(x)*sum(y)-n*sum(x*y)]/[(sum(x))^2-n*sum(x^2)] b=[sum(x)*sum(x*y)-sum(x^2)*sum(y)]/[(sum(x... 阅读全文
posted @ 2009-08-14 08:23 莫忆往西 阅读(432) 评论(0) 推荐(0)