c++ 天气预报源代码

在vs2010下运行的一款c++的联网获取天气预报的代码,希望对初学者有所帮助,代码的注释也很详细,如果又不懂或者出错的地方请留言。

有界面用easyx做的界面,去eaxyx官网下载,

网页的抓取代码:

/*{"results":[{"location":{"id":"WX4FBXXFKE4F","name":"北京","country":"CN","path":
 "北京,北京,中国","timezone":"Asia/Shanghai","timezone_offset":"+08:00"},"daily":
 [{"date":"2016-06-14","text_day":"雷阵雨","code_day":"11","text_night":"阵雨","code_night"
 :"10","high":"24","low":"17","precip":"","wind_direction":"无持续风向","wind_direction_degree"
 :"0","wind_speed":"10","wind_scale":"2"},{"date":"2016-06-15","text_day":"多云","code_day":"4"
 ,"text_night":"晴","code_night":"0","high":"30","low":"17","precip":"0","wind_direction":"无持续风向",
 "wind_direction_degree":"","wind_speed":"10","wind_scale":"2"},{"date":"2016-06-16","text_day":"多云","code_day":"4"
 ,"text_night":"多云","code_night":"4","high":"33","low":"20","precip":"0","wind_direction":"无持续风向","wind_direction_degree":"
 ","wind_speed":"10","wind_scale":"2"}],"last_update":"2016-06-14T18:00:00+08:00"}]}*/


做成后的图:


c++ 天气预报源代码_第1张图片c++ 天气预报源代码_第2张图片c++ 天气预报源代码_第3张图片






源代码下载地址:::http://download.csdn.net/detail/clx55555/9718402

你可能感兴趣的:(c++)