The idea is that i want to have a random number evaluated then randomly it will either add 1 line to the program add no lines or add 2 lines, this is a small part of a larger program so the do while is necessary.
pls paste ur code using code tags, about ur problem you are accepting the choice in
cin>>choice
but in do while u are checking for menu choice, which is declared as 1 and never changed throughout program, u end up with a infinite while loop without any exit condition.