Help with repeating code

Thank you for the help!
Last edited on
your mixing of >> and .get() has the same problem than here http://www.cplusplus.com/forum/beginner/250049/#msg1101202 (may also use getline instead)

in the do-while loop, lines 40--46, you never read into `more', so the condition never changes
also && has bigger precedence than || so the condition reads
more[0] == 'y' || (more[0] == 'Y' && more[1] == 'e' && more[2] == 's')

1
2
if(items.purchase != '1')
if(items.help != '1')
1 and '1' are not the same
Topic archived. No new replies allowed.