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"}]}*/


做成后的图:








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

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值