• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Global Array of Floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global Array of Floats


  • Subject: Global Array of Floats
  • From: R T <email@hidden>
  • Date: Sun, 30 Jan 2005 18:18:37 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

I want global access to a set of numbers in my
cocoa-java applicayion.

In C I did it this way:

//////////////////////////

float Col[2];
Ptr C;

void main(void)
{
	Col[1]=1.234;
        Col[2]=5.678;
        C = (Ptr) &Col;
}

Then in other parts of the program I used:

extern float Col[75];

and was able to access these float variables freely.

/////////////////////////////

How do I do this?

Thanks
Rick T.



__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSFormatter stringForObjectValue: (what does parameter refer to?)
  • Next by Date: Pixel Colors
  • Previous by thread: how to modify help book
  • Next by thread: Pixel Colors
  • Index(es):
    • Date
    • Thread