![]() |
Programmers out there
Hey, I know there are a few programmers out there that know a little, or a lot about c code, i need your help once more...
I got some great help a few weeks back on C code, helped me heaps, but now i am stuck once again... I need to create a database in C, it needs to store a persons names, phone number and house no and post code and it has to be able to add, delete, edit, list and search, oh an sort =) My problem, and its a big one, i have no idea where to start, a little hint or two would be most greatful. I was thinking this should be done using a text file, but i am aware that others in my class are working with "structures"? I am just an Aerospace guy, i have to learn C to programme the Sim next year, most others in my glass are doing Computer Science and the likes and all the C code i would ever need to use is loops and if's. not so sure i will need this advanced stuff but need it to pass the module. Anyway, i would appreciate any help or hints you may be able to provide, cheers guys/gals |
'Databases' here may give you some ideas.
|
www.codeguru.com and www.codeproject.com are also great resources. There's lots of ways of implementing lists, tables and databases, it all depends on the size and complexity of your project. For a simple table of, say, 100 items with a few fields and one key a 'struct' in memory and a simple flat file is probably the way to go, whereas for multi-thousand item, multi key, with many fields then one would look at using a relational database such as MSDE, and coding quieries to it in code.
|
| All times are GMT. The time now is 08:09. |
Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.