how can I write code to break from a while statement using the
word exit...... in a char array that is use to enter names
I had been trying
while (trans.name !="exit"
but it will not end my loop...if I can not use exit because it is a char array
what does anyone suggest I use to break from my loop and how do I write the code?
thanks
word exit...... in a char array that is use to enter names
I had been trying
while (trans.name !="exit"
but it will not end my loop...if I can not use exit because it is a char array
what does anyone suggest I use to break from my loop and how do I write the code?
thanks