Hi i need help solving something..
here's my problem
i need to put an x amount of $ to an specific object, lets say $10 for savings, 20 for checkings,$ 50 for car, 100 for rent.
im using 4 objects, now the thing is that i need it to add and then display all of the objects at once and the sum of them.
(and type the 999 or the EOF) to exit the object..
i did it with classes but..
my teacher told me that it was wrong, that there's another way to do it w/o using them..
PLEASE HELP ME!!!
#include <iostream.h>
int main ()
{
char class;
int amount, count;
for (count=0; count<999; ++count)
cout<<"please enter your class"endl;
cin>>class;
cout<<"please enter the amount"<<endl;
cin>>amount;