水文分析与计算——主函数//主函数//水文分析与计算课设项目.cpp#include "stdafx.h"#include <iostream>#include <fstream>#include <iomanip>#include <cmath>const int StartYear = 1956,//起始年月日 EndYear = 2000,//结束年月日 Y = EndYear - StartYear + 1,//年序列数 J = 4,//4种年极值情况 NumJ[J] = {1, 3, 7, 15},//每种情况的天数 StartMonth = 5, EndMonth = 12, StartDate = 1, EndDate = 31, Sum[13] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};//平年各月底对应的天数(从开年计起)const double PI=3.1415926;int SumDay[Y],//该年数据涉及的天数 Year;//年变量double Q[366],//一年中的日流量序列YearQ[Y],//年平均流量temp_W,//年极值计算时的中间值MaxYearW[Y][J] = {0};//年极值洪量序列#include "相关分析.h"#include "年均流量及年极值洪量.h"#include "年均流量趋势检验.h"#include "代表性分析.h"#include "频率分析.h"void main(){//插补完成后就注释掉XiangGuanFenXi(),并一起运行其他函数//XiangGuanFenXi();//插补流量资料(相关分析时单独运行此函数,其他函数注释掉)NianJunZhi();//年均流量及年极值洪量计算MannKendall();//年均流量Mann-Kendall法趋势分析XianXingJianYan();//年均流量线性回归法法趋势分析DaiBiaoFenXi();//(滑动平均值法)年极值代表性分析PinLvFenXi();//频率分析}