Thread: add-delete data

  1. #1
    Registered User
    Join Date
    Mar 2006

    Unhappy add-delete data

    i want to write a ticket reservation program.
    i pure new begineer...
    anyone can give me a simple coding for add,delete data?

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Out of scope
    Add/Delete from what?

    Perhaps you should read up on the basics of programming before you ask a question. What you asked was really too vague to answer. Add/Delete can mean assigning values, it could mean constructing/destructing objects, it could mean dynamically allocating pointers... you need to give some more info.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Jan 2005
    First you need a class to hold the data for one reservation. Then, just use a vector to hold all the instances of reservations and push_back or erase from the vector.

  4. #4
    Registered User
    Join Date
    Aug 2003
    Generally you give it your best try...then come here and ask specific questions about specific problems you are having.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  2. file processing, delete certain data
    By alternative in forum C++ Programming
    Replies: 1
    Last Post: 11-09-2003, 09:21 AM
  3. Templated Binary Tree... dear god...
    By Nakeerb in forum C++ Programming
    Replies: 15
    Last Post: 01-17-2003, 02:24 AM
  4. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM
  5. How can I do the following..
    By Dual-Catfish in forum C++ Programming
    Replies: 14
    Last Post: 05-01-2002, 03:38 AM