Can I have a do while statement in C++ that checks for both a character and a int value before looping? : <p>I very new at this and have an assignment in which I would like for a loop to exit if the user inputs(trans) 'e' but also end if a calculation balance(bal) is less than a constant I have set. Basically as my question states one is a character and the other an integer, will that work? I'm not trying to get people to do my homework for me, so I'm not posting all of my code or assignment, hope it makes sense.</p>

<pre><code>This is the line of code I have
do { 
ask user input(&amp;trans)
e or calculation
{
while (trans != 'e'| bal &lt; -OVR);
</code></pre>
