RE: Standard Euphoria Library Project

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu