I am using microsoft visual studio 2013 console application and what I am trying to do with my code is say "Hello" and if the user types "Goodbye" then the program closes ...however if they type anything else then the program repeats "Hello" ...I am not having very much luck getting it to loop around so I decided to ask here although I do know i could just copy and paste my code in the else statement so it asks however many times I paste it into itself but that'd be a waste of space and not really what I want.
oh I was just making it complicated ...thanks very much ...I know its off topic but do you know why when I have just cout<< "Hello"; my window will close instantly? i have tried things like system("pause") and all the funny ways posted in other forums but none of them seem to work for me
BTW, you really don't want to return the result of update() as the result of main. Returning a non-zero value generally tells the operating system your program didn't run successfully. You should always return 0; unless you have a reason to do otherwise.