- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: C++ forum?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:14 PM
04-02-2003 12:14 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:20 PM
04-02-2003 12:20 PM
Re: C++ forum?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:22 PM
04-02-2003 12:22 PM
Re: C++ forum?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:36 PM
04-02-2003 12:36 PM
Re: C++ forum?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 12:47 PM
04-02-2003 12:47 PM
Re: C++ forum?
I am creating 2 classes first one is called customer. and it has the first name, last name, address, account #. in it
the second one is a class called transaction that has account#
Type (W,D) (withdraw, Deposit)
and amount.
i need to use the account # as the position in the array
i need to write a program that allows the user to choose whether to:
first load up the customer information for 5 customers
then:
Depsoit
Withdraw
print customers
print transaction for customer
(i guess this would be a menu?)
this is what thses need to do:
deposit and withdraw will prompt the user for the account # (array position) and amount
ptint customers will show all data( account number, names, balance)
print transaction for customer willprompt for a account and then print all of the transactions (type, Amount)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:03 PM
04-02-2003 01:03 PM
Re: C++ forum?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:11 PM
04-02-2003 01:11 PM
Re: C++ forum?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:12 PM
04-02-2003 01:12 PM
Re: C++ forum?
#include
#include
using namespace std;
class Customer
{
private:
public:
char FirstName;
char LastName;
int address;
int accountNum;
}
class Transaction
{
private:
public:
char Type; // (W,D) (withdraw, Deposit)//
int amount;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 01:58 AM
04-04-2003 01:58 AM
Re: C++ forum?
I don't know the environment your program is going to run in and how your classes will be used, but I would make the attributes of both classes private and provide member functions to read out the values and to manipulate them, as well as to do sanity checks on the data. You definitely wouldn't want to have someone put in an account no. like "gronk"...