Thread: how can i update a record????

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    22

    how can i update a record????

    I was wondering if it is possible to display a record in a linked list, or any other structure and be able to update the record rather than delete the record an re-enter it

    any help would be awesome

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well once it's in memory, you can do what you want with it

    Easiest thing to do is to visualise what is going on by drawing 'before' and 'after' pictures of your data structure (eg. array), and the action (eg. add) which you want to perform.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    22
    i know what i want to do but i dont know how to do it!!!!
    i wantr to display the record and then update the record as i am looking at in on the screen

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Code:
    record[i] = update( record[i] );
    Update displays all the fields of a record, prompts for changes, then returns the updated copy when all is done. The assignment then updates your record.

    Or something else?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with binary file c++
    By lucky_mutani in forum C++ Programming
    Replies: 4
    Last Post: 06-05-2009, 09:24 AM
  2. Update Record & Delete Record in File.
    By unsafe_pilot1 in forum C Programming
    Replies: 13
    Last Post: 05-18-2008, 07:22 AM
  3. updating and deleting a record
    By Burritt in forum C Programming
    Replies: 2
    Last Post: 04-19-2003, 04:58 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  5. behind and confused
    By steviecrawf in forum C Programming
    Replies: 1
    Last Post: 11-09-2001, 12:51 PM