
please wait
|
|
http://www.cplusplus.com/forum/general/183560/ |
struct
which contains the information for 1 row of data? Then have a std::vector
of your struct
.
|
|
|
|
std::vector<LandRecord> LandDataBase; // a cadastre
I have not been using structs but now that you advised, i will look into them and see if they can simplify the problem. |
struct
and class
are almost identical, struct
is public:
by default, whereas class
is private:
by default.Anyway you can read all about it :+)Mwangi Elijah wrote: |
---|
I would have wanted to make the database look like an excel worksheet with one common row at top bearing the column headings |
LR UNIT NUMBER, NAME OF PROPRIETOR, NATIONAL ID CARD NUMBER, ADDRESS OF PROPRIETOR, PIN NUMBER OF PROPRIETOR, DATE_OF_ACQUISITION, DATE_OF_ISSUE_OF_TITLEDEED, CATEGORY, TYPE_OF_OWNERSHIP, COUNTY_LOCATED, DISTRICT_LOCATED, DIVISION_LOCATED, LOCATION_LOCATED, SUBLOCATION_LOCATED, VILLAGE_LOCATED RTI3866996L, MWANGI ELIJAH, 4568786990, BOX 234 NAIROBI, B143233556367P, 23-01-2016, 30-01-2016, PRIVATE LAND, ABSOLUTE, NAIROBI, ROYSAMBU, GIRHURAI, SECTION 44, WAIHENYA, SONIC GJ4758869LT, TEST DATA, 234536374, KENYA, RT474785859L, TODAY, FUTURE DATE, PUBLIC LAND, LEASEHOLD, LAIKIPIA, NARO MORU, EQUATOR, GWA KUNGU, MUCII, GWITU |
|
|