Please help answer this question
A customer has two bank accounts, the variable of the bank acounts are bankAcc1 and bankAcc2, and the variable name for the balance of each account are: balance1 and balance2. write a while loop in which the two bank accounts (bankAcc1 and bankAcc2) may not hold the same bank account number, and the customer must not have negative balance for each of the account, write a while loop that validates the bank account numbers and the balance.

Just build two vectors, containing pointers to the account numbers and the second containing pointers to the values, and loop through the vectors.

Is this a homework?

Yes is a home work. But how do I write this while loop down on a c++?
Like while (balance != 0) or something else I do not know how to start

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.