Thursday, 20 January 2011

Yes or No decision problem


hi guys! i'm kinda new programming , need help.

[​img]

keep getting "exc_bad_access" every time enter "y"

code:
  take bmi using meters(height) &   kilograms(weight)? (y/n): y  current language:  auto; minimal  (gdb)   
i appreciate guys :d
 

you're passing char scanf. scanf expect receive ? char appropriate ?

here, i'll give strong hint, appropriate lines in man page :

 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment