From: Randolph Wang <rywang@CS.Princeton.EDU>
Date: Fri, 27 Feb 2004 07:41:36 -0500 (EST)
To: rgottron@princeton.edu
Cc: randy_class@CS.Princeton.EDU
Subject: Re: my program
> Hi,
>
> I just wanted to tell you -- I submitted my program, but I forgot to
> change the format of the infinite loop. Instead of doing while (true),
> I left it as the infinite for loop design I originally had. It's a
> little more cumbersome, but it's still correct, right? I just thought I
> would leave in my own idea. Is that okay?
>
> Thanks,
> Rachel
>
Your code looks fine.
In addition to:
while (true) { ... }
Another stylized way people use for infinite loops is:
for (;;) { ... }
(literally, except the dot dot dot part)
Re: my program / Randolph Wang