Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TejasMehrotra

macrumors newbie
Original poster
Hi,

I am very new to programming on XCode. I was having trouble including functions like pow, sqrt in my program. Which header file am I suppose to include in order to execute my program without any errors?

Thanks for your help! 🙂

Best
Tejas.
 
#include <math.h>

In Xcode's documentation window you can search these functions and it will show you which header to include.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.