📄 天气预报采集系统dlg.cpp
字号:
arr14.Add("吴忠");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr14.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr14[i],weather);
weather_update_log.Format("%s\r\n%s",arr14[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr14[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 宁夏_14";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc15(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr15;
arr15.Add("兰州");//"兰州","白银","庆阳","酒泉","天水","武威","张掖","甘南","临夏","平凉","定西","金昌"
arr15.Add("白银");
arr15.Add("庆阳");
arr15.Add("酒泉");
arr15.Add("天水");
arr15.Add("武威");
arr15.Add("张掖");
arr15.Add("甘南");
arr15.Add("临夏");
arr15.Add("平凉");
arr15.Add("定西");
//arr15.Add("金昌");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr15.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr15[i],weather);
weather_update_log.Format("%s\r\n%s",arr15[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr15[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 甘肃_15";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc16(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr16;
arr16.Add("西宁");//"西宁","海北","海西","黄南","果洛","玉树","海东","海南"
arr16.Add("海北");
arr16.Add("海西");
arr16.Add("黄南");
arr16.Add("果洛");
arr16.Add("玉树");
arr16.Add("海东");
arr16.Add("海南");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr16.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr16[i],weather);
weather_update_log.Format("%s\r\n%s",arr16[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr16[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 青海_16";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc17(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr17;//"武汉","宜昌","黄冈","恩施","荆州","神农架","十堰","咸宁","襄樊","孝感",
//"随州","黄石","荆门","鄂州"
arr17.Add("武汉");
arr17.Add("宜昌");
arr17.Add("黄冈");
arr17.Add("恩施");
arr17.Add("荆州");
arr17.Add("神农架");
arr17.Add("十堰");
arr17.Add("咸宁");
arr17.Add("襄樊");
arr17.Add("孝感");
arr17.Add("随州");
arr17.Add("黄石");
arr17.Add("荆门");
arr17.Add("鄂州");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr17.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr17[i],weather);
weather_update_log.Format("%s\r\n%s",arr17[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr17[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 湖北_17";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc18(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr18;
arr18.Add("长沙");//"长沙","邵阳","常德","郴州","吉首","株洲","娄底","湘潭",
//"益阳","永州","岳阳","衡阳","怀化","韶山","张家界"
arr18.Add("邵阳");
arr18.Add("常德");
arr18.Add("郴州");
arr18.Add("吉首");
arr18.Add("株洲");
arr18.Add("娄底");
arr18.Add("湘潭");
arr18.Add("益阳");
arr18.Add("永州");
arr18.Add("岳阳");
arr18.Add("衡阳");
arr18.Add("怀化");
arr18.Add("韶山");
arr18.Add("张家界");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr18.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr18[i],weather);
weather_update_log.Format("%s\r\n%s",arr18[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr18[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 湖南_18";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc19(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr19;
arr19.Add("杭州");//"杭州","湖州","金华","宁波","丽水","绍兴","雁荡山","衢州","嘉兴","台州","舟山","温州"
arr19.Add("湖州");
arr19.Add("金华");
arr19.Add("宁波");
arr19.Add("丽水");
arr19.Add("绍兴");
arr19.Add("雁荡山");
arr19.Add("衢州");
arr19.Add("嘉兴");
arr19.Add("台州");
arr19.Add("舟山");
arr19.Add("温州");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr19.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr19[i],weather);
weather_update_log.Format("%s\r\n%s",arr19[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr19[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 浙江_19";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc20(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr20;
arr20.Add("南昌");
arr20.Add("萍乡");
arr20.Add("九江");
arr20.Add("上饶");
arr20.Add("抚州");
arr20.Add("吉安");
arr20.Add("鹰潭");
arr20.Add("宜春");
arr20.Add("新余");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr20.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr20[i],weather);
weather_update_log.Format("%s\r\n%s",arr20[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr20[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 江西_20";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc21(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr21;
arr21.Add("福州");
arr21.Add("厦门");
arr21.Add("龙岩");
arr21.Add("南平");
arr21.Add("宁德");
arr21.Add("莆田");
arr21.Add("泉州");
arr21.Add("三明");
arr21.Add("漳州");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr21.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr21[i],weather);
weather_update_log.Format("%s\r\n%s",arr21[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr21[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 福建_21";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc22(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr22;
arr22.Add("贵阳");
arr22.Add("安顺");
arr22.Add("赤水");
arr22.Add("遵义");
arr22.Add("铜仁");
arr22.Add("六盘水");
arr22.Add("毕节");
arr22.Add("凯里");
arr22.Add("都匀");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr22.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr22[i],weather);
weather_update_log.Format("%s\r\n%s",arr22[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr22[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 贵州_22";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc23(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr23;
arr23.Add("成都");
arr23.Add("泸州");
//arr23.Add("内江");
arr23.Add("凉山");
arr23.Add("阿坝");
arr23.Add("巴中");
arr23.Add("广元");
arr23.Add("乐山");
arr23.Add("绵阳");
arr23.Add("德阳");
arr23.Add("攀枝花");
arr23.Add("雅安");
arr23.Add("宜宾");
arr23.Add("自贡");
arr23.Add("甘孜州");
arr23.Add("达州");
arr23.Add("资阳");
arr23.Add("广安");
arr23.Add("遂宁");
arr23.Add("眉山");
arr23.Add("南充");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr23.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr23[i],weather);
weather_update_log.Format("%s\r\n%s",arr23[i],weather);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.GetWindowText(temp);
weather_update_log+="\r\n";
weather_update_log+=temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_Log_Edit.SetWindowText(weather_update_log);
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->RecordWeatherByCity(arr23[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 四川_23";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -