上午10:08回2.2K/sCz
(2)问题要求
请实现以下函数声明,要求能得到如下图所示的运行结果
文件名:Weatherorecast.cpp
概票: 模拟天气预报, 一个月的温度分析
G 1.displayTempg 显示月间温度的样状图
displayPeaks, 2 显示月间温度中的峰值
3.displayelat, 显示月间持续最久的温度
4.nDutTemp, 日 接收用户输人
finclude<iostream>
17
12//输入n个温度
19: voidinputTemps(inttemp[],intn)
14//显示性状的
1S voiddisplayTempginttemp[].intn)
16/显示月间满度中的所有值
void displayPeaks(int temp[],intn)
1 //显示月间持续最久的温度
19 voiddisplaylat(int temp[l,intn)
21 //主函数
22 intmain()
23
24 inttemps[30]
25
26 inputTemps(temps,30);
27 displayTemps(temps,30);
28 displayPeaks(temps,30);
24 displayplat(temps,30);
30
31 teturn 0: The longth of longest flatis
32 yezi@yeziyeziyoudeMacBook-Pro实验2/temperatur
Pleaseinputthe tenperatures:
11121311111111109131311161415
mhf8 temperature Histogramis
2
5
17
19
12
13
14
The Peak value as fol1owg1
Max at day 3i 13
Maxat day 131816
你是要帮助写这些函数吗?自己能写多少