Re: Passing floats/doubles to C
- Posted by Bernie Ryan <LockCityData at CS.COM> Feb 13, 2000
- 558 views
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