TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: STEVEN LEI
date: 1997-09-11 22:16:00
subject: for()

While Steven was reading other messages, Javier Kohen wrote:
 JK> How can I declare to vars in a for statement legally?
 JK> Ie:
 JK> for (int i, int j; ; ) {
 JK> ;
 JK> }
// Initializes the variable legally.
#include 
main()
{
        for(int loop = 1; loop <= 10; loop++)  
	{
                cout << "Hello World!" < * Origin: CORVETTE BBS - Las Vegas, Nevada (702) 431-2284 (1:209/218)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.