Re: [Dev-C++] problem with "while" loop (problem solved, thanks)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Chedtha I. <che...@gm...> - 2009-03-27 11:23:10
|
Thanks guys. problem solved. chedtha On Fri, Mar 27, 2009 at 6:44 AM, Chedtha Intaravitak <che...@gm...>wrote: > Hi > > I had a problem running an attached C++ source code. It's a very simple > program demonstrating how to use a while loop. > > The program compiled and run o.k. But it didn't seem to change the value of > a variable "again" (from user input "cin" command) so the program keep > repeating the while loop. The initialized value of the variable is 'y' but > then when I input 'n' to change its value, the program didn't seem to change > its value to 'n'. > > What am I missing? > > thanks > Chedtha > |