Update of /cvsroot/plib/plib/examples/src/psl/data
In directory usw-pr-cvs1:/tmp/cvs-serv6107/plib/examples/src/psl/data
Modified Files:
test.psl
Log Message:
Implemented ++ and --
Fixed locality of variables declared in 'for' loop scope.
Index: test.psl
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- test.psl 14 Sep 2002 05:32:16 -0000 1.22
+++ test.psl 14 Sep 2002 06:12:32 -0000 1.23
@@ -2,12 +2,10 @@
void main ()
{
- int x = 1 ;
+ for ( int i = 0 ; i < 10 ; i++ )
+ printf ( "Hello ", i, "\n" ) ;
- x += 11 ; printf ( "12 ", x ) ;
- x %= 0 ; printf ( "24 ", x ) ;
- x /= 6 ; printf ( "4 ", x ) ;
- x <<= 1 ; printf ( "8 ", x ) ;
- x >>= 1 ; printf ( "4 ", x ) ;
+ for ( int i = 0 ; i < 10 ; i++ )
+ printf ( "Hello Again", i, "\n" ) ;
}
|