Thread: Counting Transactions

  1. #1
    Registered User
    Join Date
    Oct 2009

    Counting Transactions

    I think i'm just blanking at the moment... however I need to get this solved asap, so any ideas/help would be greatly appreciated.

    I have a software program written in C++ that extracts data from documents. I need to be able to count the number of documents ( transactions) that occur. I currently can count them, thats easy however I need this running counter not reset everytime the program is run. Meaning say the user had 500 transactions to start, they run the program extract 350 documents, they now have 150 left. They exit and come back later, the program needs to know that there are only 150 transactions allowd to happen now. Make sense?

    Thanks in advance!!!

  2. #2
    Registered User
    Join Date
    Oct 2006
    I'd suggest using some form of non-volatile storage like a configuration file or database.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reference Counting
    By Dae in forum C++ Programming
    Replies: 10
    Last Post: 08-13-2009, 07:34 AM
  2. Counting up(and down) using recursive function. Please help.
    By MarkSquall in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2008, 04:26 AM
  3. How to implement reference counting with 'Smart_ptr'?
    By meili100 in forum C++ Programming
    Replies: 3
    Last Post: 06-10-2007, 05:28 AM
  4. Counting Numbers in Array, not counting last number!
    By metaljester in forum C++ Programming
    Replies: 11
    Last Post: 10-18-2006, 11:25 AM
  5. Counting using Lib Cstring
    By niroopan in forum C++ Programming
    Replies: 4
    Last Post: 12-13-2002, 05:51 PM