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

TejasMehrotra

macrumors newbie
Original poster
Dec 14, 2009
5
0
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.
 
Thanks a lot!

It worked. :) Sorry I forgot to mention the language. It was C++.

Thanks once again. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.