Re: problem

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

On Sunday 12 October 2003 02:21 pm, you wrote:
>
>
> I'm trying to write a functon  to convert a sequence (of numbers and
> strings) to a long string sequence.
> i.e {1,2,{2002,12,30}} to "(1,2,"2002-12-30")"

sequence s
s = {1,2,{2002,12,30}}

printf(1,"(%d, %d,\"%d-%d-%d\")",
       {s[1],s[2],s[3][1],s[3][2],s[3][3]})

--output:
(1, 2,"2002-12-30")

Press Enter...

Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu