no print function output do while
Ali Çehreli
acehreli at yahoo.com
Thu Sep 28 18:46:56 UTC 2017
On 09/28/2017 08:13 AM, dark777 wrote:
> no print function output do while
>
> in my program after entering the data and select the function that will
> print on the screen the same is not printing ..
>
> and if I choose 'q' or 'Q' does the program not close what is happening?
> should not it work just like in C ++?
>
> https://pastebin.com/iiMVPk4x
You made a simple logic error. Change the following || to &&:
}while(choice != 'q' || choice != 'Q');
Ali
More information about the Digitalmars-d-learn
mailing list