Coder Social home page Coder Social logo

adcodeproj's Introduction

AdcodeProj

Adcode区域代码解析

代码特点

1、提供了**境内的省、地市、县adcode编码解析方式,采用hashmap组织数据结构,达到高效查询的目的

2、存储adcode的文件不要求录入数据的顺序

3、基于qt开发,c++语言编写,代码比较简单,也可转换为纯c++或者其他语言。

数据结构讲解

QHash<QString,Area> &hash_adcodeManager是一个hash结构,key为ADCODE,每个key都对应着一个value,该value为Area数据结构,Area存储了该地区的名称、所属上级地区和管辖的下级地区,如石家庄市,hash_adcodeManager中对应的key为130100,Area中存储了名称(石家庄市)、父级编码(河北省130000)、自己的编码(130100)、22个管辖区域的编码列表。注意,代码读取的txt文件对录入数据的顺序没有要求。

详细参考文章

http://www.lgwimonday.cn/archives/1552 更多内容尽在 http://www.lgwimonday.cn/ 搜索 “阿拉灯 Aladeng”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.