📄 天气预报采集系统dlg.cpp
字号:
arr5.Add("葫芦岛");
arr5.Add("盘锦");
arr5.Add("本溪");
arr5.Add("抚顺");
arr5.Add("铁岭");
arr5.Add("辽阳");
arr5.Add("营口");
arr5.Add("阜新");
arr5.Add("朝阳");
arr5.Add("锦州");
arr5.Add("丹东");
arr5.Add("鞍山");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr5.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr5[i],weather);
weather_update_log.Format("%s\r\n%s",arr5[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(arr5[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 辽宁_5";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc6(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr6;
arr6.Add("呼和浩特");
arr6.Add("呼伦贝尔");
arr6.Add("锡林浩特");
arr6.Add("包头");
arr6.Add("赤峰");
arr6.Add("海拉尔");
arr6.Add("乌海");
arr6.Add("鄂尔多斯");
arr6.Add("通辽");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr6.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr6[i],weather);
weather_update_log.Format("%s\r\n%s",arr6[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(arr6[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 内蒙古_6";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc7(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr7;
arr7.Add("石家庄");//"石家庄","唐山","张家口","廊坊","邢台","邯郸","沧州","衡水","承德","保定","秦皇岛"
arr7.Add("唐山");
arr7.Add("张家口");
arr7.Add("廊坊");
arr7.Add("邢台");
arr7.Add("邯郸");
arr7.Add("沧州");
arr7.Add("衡水");
arr7.Add("承德");
arr7.Add("保定");
arr7.Add("秦皇岛");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr7.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr7[i],weather);
weather_update_log.Format("%s\r\n%s",arr7[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(arr7[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 河北_7";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc8(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr8;
arr8.Add("郑州");//"郑州","开封","洛阳","平顶山","焦作","鹤壁","新乡","安阳","濮阳","许昌","漯河","三门峡","南阳","商丘","信阳","周口","驻马店"
arr8.Add("开封");
arr8.Add("洛阳");
arr8.Add("平顶山");
arr8.Add("焦作");
arr8.Add("鹤壁");
arr8.Add("新乡");
arr8.Add("安阳");
arr8.Add("濮阳");
arr8.Add("许昌");
arr8.Add("漯河");
arr8.Add("三门峡");
arr8.Add("南阳");
arr8.Add("商丘");
arr8.Add("周口");
arr8.Add("南阳");
arr8.Add("驻马店");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr8.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr8[i],weather);
weather_update_log.Format("%s\r\n%s",arr8[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(arr8[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 河南_8";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc9(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr9;
arr9.Add("济南");//"济南","青岛","淄博","威海","曲阜","临沂","烟台","枣庄","聊城","济宁","菏泽","泰安","日照","东营","德州","滨州","莱芜","潍坊"
arr9.Add("青岛");
arr9.Add("淄博");
arr9.Add("威海");
arr9.Add("曲阜");
arr9.Add("临沂");
arr9.Add("烟台");
arr9.Add("枣庄");
arr9.Add("聊城");
arr9.Add("济宁");
arr9.Add("菏泽");
arr9.Add("泰安");
arr9.Add("日照");
arr9.Add("东营");
arr9.Add("德州");
arr9.Add("滨州");
arr9.Add("莱芜");
arr9.Add("潍坊");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr9.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr9[i],weather);
weather_update_log.Format("%s\r\n%s",arr9[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(arr9[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 山东_9";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc10(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr10;
arr10.Add("太原");//"太原","阳泉","晋城","晋中","临汾","运城","长治","朔州","忻州","大同","吕梁"
arr10.Add("阳泉");
arr10.Add("晋城");
arr10.Add("晋中");
arr10.Add("临汾");
arr10.Add("运城");
arr10.Add("长治");
arr10.Add("朔州");
arr10.Add("忻州");
arr10.Add("大同");
arr10.Add("吕梁");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr10.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr10[i],weather);
weather_update_log.Format("%s\r\n%s",arr10[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(arr10[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 山西_10";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc11(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr11;
arr11.Add("南京");//"南京","苏州","昆山","南通","太仓","吴县","徐州","宜兴","镇江","淮安",
arr11.Add("苏州");//"常熟","盐城","泰州","无锡","连云港","扬州","常州","宿迁"
arr11.Add("昆山");
arr11.Add("南通");
arr11.Add("太仓");
//arr11.Add("吴县");
arr11.Add("徐州");
arr11.Add("宜兴");
arr11.Add("镇江");
arr11.Add("淮安");
arr11.Add("常熟");
arr11.Add("盐城");
arr11.Add("泰州");
arr11.Add("无锡");
arr11.Add("连云港");
arr11.Add("扬州");
arr11.Add("常州");
arr11.Add("宿迁");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr11.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr11[i],weather);
weather_update_log.Format("%s\r\n%s",arr11[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(arr11[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 江苏_11";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc12(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr12;
arr12.Add("合肥");//"合肥","巢湖","蚌埠","安庆","六安","滁州",
//"马鞍山","阜阳","宣城","铜陵","淮北","芜湖","毫州","宿州","淮南","池州"
arr12.Add("巢湖");
arr12.Add("蚌埠");
arr12.Add("安庆");
arr12.Add("六安");
arr12.Add("滁州");
arr12.Add("马鞍山");
arr12.Add("阜阳");
arr12.Add("宣城");
arr12.Add("铜陵");
arr12.Add("淮北");
arr12.Add("芜湖");
arr12.Add("毫州");
arr12.Add("宿州");
arr12.Add("淮南");
arr12.Add("池州");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr12.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr12[i],weather);
weather_update_log.Format("%s\r\n%s",arr12[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(arr12[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 安徽_12";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc13(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr13;
arr13.Add("西安");//"西安","韩城","安康","汉中","宝鸡","咸阳","榆林","渭南","商洛","铜川","延安");
arr13.Add("韩城");
arr13.Add("安康");
arr13.Add("汉中");
arr13.Add("宝鸡");
arr13.Add("咸阳");
arr13.Add("榆林");
arr13.Add("渭南");
arr13.Add("商洛");
arr13.Add("铜川");
arr13.Add("延安");
for (int j=0;j<1000;j++)
{
for (int i=0;i<arr13.GetCount();i++)
{
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->GetWeatherByCity(arr13[i],weather);
weather_update_log.Format("%s\r\n%s",arr13[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(arr13[i],weather);
}
j=1000;
}
CString updated_temp;
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.GetWindowText(updated_temp);
updated_temp+="\r\n已更新 陕西_13";
((CTQYBDlg*)AfxGetApp()->m_pMainWnd)->m_updated_log.SetWindowText(updated_temp);
return TRUE;
}
UINT __cdecl CTQYBDlg::WeatherCollectProc14(LPVOID p)
{
CString weather_update_log;
CString weather;
CString temp;
CStringArray arr14;
arr14.Add("银川");//"银川","固原","中卫","石嘴山","吴忠"
arr14.Add("固原");
arr14.Add("中卫");
arr14.Add("石嘴山");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -