Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Bank account program- double array help

    I am currently writing a bank account program that is keeping track of transactions and balance. I want to store the transaction and balance every time a button is pushed but not sure how to do it. I know I would need an array of unlimited size. Could someone help? I'm doing this because I have to save it to a file.

  • #2
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Language???
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #3
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    I'm unsure of what language you're looking at, but with whatever it is, if you want an array of "unlimited" size (unlimited being in quotes since everything has a limit) then I may suggest a Linked List.

    Being a java programmer this is rather easy in Java. Just create a class and then a class to handle the linked list.

    If you wanted to be REALLY fancy you could make it doublely linked..but I think that's a bit much for what you're going for. (Unless you have to traverse backwards and fowards)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •