Re: C question...

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

EU>Hy,
EU>I'm not new with Euphoria, but with C/C++
EU>and since I was so stupid enough to learn the easy programming first, named
EU>My question was, if there is a way to create unpredictable sequences like in
EU>I mean, how can this be possible in C:
EU>    sequence tmp
EU>    tmp={ {}, {{},{}}, {}...}
EU>    tmp[2]={{},{},{},1}
EU>Those unpredictable kind of things, can it be done with C/C++
EU>I tried, but...
EU>Also tried it with placing at the beginning of a program: char tmp[]
EU>that works a little, but thats not possible within a function.
EU>Even tried: unsigned long char tmp[]
EU>Can anyone give an example on how to do all of this, in a C or C++
EU>program, with a function returning a sequence and the procedure processing t

EU>Thanks,
EU>PQ
EU>QC

It is possible, but it's not built-in. You'd probably have to write your
own functions to automatically resize and subscript sequences etc.

Jeffrey Fielding
JJProg at cyberbury.net
http://members.tripod.com/~JJProg/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu