• 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
A bit confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A bit confused


  • Subject: A bit confused
  • From: Michael Curtis <email@hidden>
  • Date: Thu, 17 Jun 2004 10:52:25 +0100

Hi,

I am sorry about this newbie question, but I am getting a bit
confused. I am making an array and filling it with random numbers. This
works fine. I then want to check that array to make sure that the
number added is not already in there.

I am having trouble return the number out of the array. This is the
error I get.

main.m:34: assignment makes integer from pointer without a cast

I am guessing that I am trying to get a number out of an object
straight into an int and I am not allowed to do this?

I am sorry if this is a really stupid question, but I am trying to
make some of my own code rather just type examples out of the book. It
will make more sense when I have worked through all my code :-)

Thanks for your help.

Best wishes

Michael

ps - Is their an easy way to see what is stored in my array? At the
moment I am just NSLogging it back out so I can see what I have
generated. I can see in x code the random numbers being made as I go
along and the array growing, but it would be nice to see the whole
thing without having to NSLog it out again.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Releasing memory
  • Next by Date: Re: A bit confused
  • Previous by thread: Re: Properly dealing with images
  • Next by thread: Re: A bit confused
  • Index(es):
    • Date
    • Thread