Thread: Structures and header files problem

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    Structures and header files problem

    Hi i don't have a clue where to start with this problem can someone give me a few pointers?


    Description of Problem
    • Write a program that manipulates banking information.
    • Write a separate function to do each of the following:
    – Populate a set of bank accounts from a predefined data arrays
    – Print out a set of bank accounts
    – Find and print the account with the highest balance
    – Add 100 euro to each account balance
    • Each of the functions will be passed the array of account structures, so there will be
    NO global data
    • Use a separate headers file (e.g. bank.h) to hold the bank function prototypes and
    the struct definition
    • Use a separate .cpp file to hold the bank account functions listed above
    • Call all of the functions from your main() function

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. header files namesspaces in C++
    By luvocean1 in forum C++ Programming
    Replies: 4
    Last Post: 07-06-2008, 12:33 PM
  2. Header files and classes
    By disruptivetech in forum C++ Programming
    Replies: 5
    Last Post: 04-21-2008, 09:02 AM
  3. header and source files
    By gtriarhos in forum C Programming
    Replies: 3
    Last Post: 10-02-2005, 03:16 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. more header files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2001, 01:56 PM