Notices
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Programmers out there

Old 25th November 2006 | 10:31
  #1 (permalink)  
Thread Starter
 
Joined: Jun 2006
Posts: 526
Likes: 0
From: BRISTOL!
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
planecrazy.eu is offline  
Reply
Old 25th November 2006 | 11:45
  #2 (permalink)  
Per Ardua ad Astraeus
 
Joined: Mar 2000
Posts: 18,575
Likes: 4
From: UK
'Databases' here may give you some ideas.
BOAC is offline  
Reply
Old 25th November 2006 | 13:17
  #3 (permalink)  
 
Joined: Nov 2005
Posts: 38
Likes: 0
From: england
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.
hooligan88b is offline  
Reply

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.