TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: FRANOIS DE MEY
date: 1997-10-09 23:11:00
subject: for()

Hi coder,
 JK> How can I declare to vars in a for statement legally?
 JK> Ie:
 JK> for (int i, int j; ; ) {
 JK> ;
 JK> }
 By initialising them...
 ie:
 for( int i = 0, int j = 457;; ) {}
 Ciao
... Coding is so funny...
--- Blue Wave/DOS v2.30
---------------
* Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009)

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™.