add-delete data

This is a discussion on add-delete data within the C++ Programming forums, part of the General Programming Boards category; i want to write a ticket reservation program. i pure new begineer... anyone can give me a simple coding for ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    8

    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
    Location
    Out of scope
    Posts
    4,077
    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
    Posts
    7,344
    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
    Posts
    1,209
    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, 02: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, 07:49 PM
  5. How can I do the following..
    By Dual-Catfish in forum C++ Programming
    Replies: 14
    Last Post: 05-01-2002, 04:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21