Like Tree1Likes
  • 1 Post By Adak

How to post a transaction history

This is a discussion on How to post a transaction history within the C Programming forums, part of the General Programming Boards category; hey guys, i am trying to get my transaction history to print out for a bank account, but i am ...

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    12

    How to post a transaction history

    hey guys, i am trying to get my transaction history to print out for a bank account, but i am stuck.

    i am using this function.
    i do not know how to seperate the transactions and print them.

    Code:
    void PrintRegister(float begBalance,float balance)
    {
            printf("----------------------\n");
            printf("   Account Register\n\n");
            printf("Beginning Balance:%f ", begBalance);
            printf("\nEnding Balance:%f\n\n", balance);
            printf("Trans # Type            +/- Amount       Balance\n\n");
    }

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by thirbur View Post
    hey guys, i am trying to get my transaction history to print out for a bank account, but i am stuck.

    i am using this function.
    i do not know how to seperate the transactions and print them.

    Code:
    void PrintRegister(float begBalance,float balance)
    {
            printf("----------------------\n");
            printf("   Account Register\n\n");
            printf("Beginning Balance:%f ", begBalance);
            printf("\nEnding Balance:%f\n\n", balance);
            printf("Trans # Type            +/- Amount       Balance\n\n");
    }
    That's not a question. I have no idea what you are trying to separate, or what the problem you are having, with your efforts to make it separate. What have you tried? How did it fail?

    And please, it's separate, with two 'e' 's and two 'a' 's. I hate hearing Daniel Webster groaning from his grave.
    claudiu likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Transaction status
    By mixalissen in forum C# Programming
    Replies: 0
    Last Post: 07-17-2008, 02:57 AM
  2. Restarting an ISR in a transaction-like style
    By rrnkayab in forum Linux Programming
    Replies: 2
    Last Post: 08-23-2006, 02:36 PM
  3. transaction of value without temperory variable
    By magesh_khanna in forum C Programming
    Replies: 3
    Last Post: 08-11-2006, 10:28 AM
  4. Transaction Processing System
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 08-02-2002, 08:23 AM

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