RE: Standard Euphoria Library Project
- Posted by Al Getz <Xaxo at aol.com> Feb 07, 2001
- 427 views
Hi Kat, I ran your program: > include get.e > integer key > sequence test > test = "Kat" > > > function remove( integer i, sequence s ) > -- remove ith element from s > return s[1..i-1] & s[i+1..length(s)] > end function > > for i = 1 to length( test ) do > puts( 1, remove( i, test ) & "\n" ) > end for > ------------------------------------- eof > > key = wait_key() > > test = "" > puts(1,"\n"&sprintf("%d",length(test))&"\n") > > puts(1," ^ printed length of test\n") > key = wait_key() > and got the following output: at Kt Ka 0 ^ printed length of test So it seems the program runs just fine. Whats wrong when you run it? --Al