User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,658 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,387 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:

Simple solution to database

Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Rep Power: 4
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: Simple solution to database

  #3  
Jun 11th, 2007
A few comments:
1. Given it's C++ problem, try using C++ containers (instead of array) e.g. vector/list/map.
2. You don't really need to force use of a design. Not yet at least.
3. Comment on the design: Class Data should not be responsible for insertion/deletion/.. Look at it purely from english pov, Data itself shouldn't have this functionality. If you look at your problem stmt, you'll see that you're missing a major class (named Database). Database should be the one who has this functionality.
Are you Agile.. ?
Reply With Quote  
All times are GMT -4. The time now is 11:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC