cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Point of Sales
Point of Sales
Aug 14, 2011 at 11:31pm UTC
raprap17
(15)
I'm trying to make a simple point of sales program...
the problem is "what if the customer wants to add another order?" how can i store his/her first order? store the price,the amount?then display all the items he/she ordered and it's total price?
Aug 14, 2011 at 11:33pm UTC
closed account (
zb0S216C
)
Consider using
std::vector
[1]
.
std::vector
is an expandable array that grows with each call to
std::vector::push_back( )
.
References:
[1]
http://www.cplusplus.com/reference/stl/vector/
Wazzak
Aug 14, 2011 at 11:45pm UTC
raprap17
(15)
thank you very much!..thank you for posting the link....i'll study that one!
Topic archived. No new replies allowed.