programming

Status
Not open for further replies.
Joined
Apr 6, 2009
Messages
1
Reaction score
0
Points
1
Hi, i am taking an independent study programming class and have decided to program on a mac using xcode, it is a relativity program and uses the same text fields for input and output. The mathematics in it is sound but the program keeps giving numbers that are absolutely unrelated to anything. i will post the code with the mathematics in it if someone feels they can help
 
Joined
Sep 19, 2008
Messages
302
Reaction score
4
Points
18
Location
Nottingham, UK
Your Mac's Specs
20" iM ac,13.3" Aluminium Unibody Macbook, iPhone 4
Sure, if you post the code I will take a look for you.
 
Joined
Aug 1, 2008
Messages
6
Reaction score
0
Points
1
Variable

Are you using the same type of instance variable for displaying your output.

For instance, you could be displaying it with ...@"%f", myInteger... which would be incorrect because you'd need to make "%f" to be "%d" or "%i" for it to display correctly.
 
Status
Not open for further replies.

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top