Re: Passing floats/doubles to C

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

On Sun, 13 Feb 2000 11:39:19 -0600, Todd Riggins <triggins at AIRMAIL.NET>
wrote:

>Arg. Now I have the C function to accept the data as a
>double array of 17, like this:

 Todd:
   All you have do is describe the structure with the editor,
   then cut the discription and paste it 16 more times, change
   each entry name so it's unique. Like this

  constant MATERIAL = struc(
                             <--- copy from here
   " 1_entrya : double : 1 "&
   " 1_entryb : double : 1 "&
   " 1_entryc : double : 1 "&
                             <--- copy to here
   ..... paste 15 times up to here
                             <--- pasted and make name unique
   " 17_entrya : double : 1 "&
   " 17_entryb : double : 1 "&
   " 17_entryc : double : 1 ",HIGH)

  Then you have a array of 17 structures that you can address any
  location in it by name

Bernie

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

Search



Quick Links

User menu

Not signed in.

Misc Menu