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

muthuveerappan

macrumors newbie
Original poster
Aug 17, 2008
15
0
Hi,

I am new mac user, and I am learning C++.

I use g++ on the terminal to compile my c++ programs.

I would like to know if there is any built in help on C++ on a mac.

Like for example, if I wanted to know about the function "pow" then can I get all the details about the function, like purpose of the function, argument list, return type.

I have used Turbo C on windows which had a detailed help, so was wondering if there was something on a mac.

Thanks,
Muthu
 

muthuveerappan

macrumors newbie
Original poster
Aug 17, 2008
15
0
Thanks a lot !! got 2 more questions

Thank you so much, was struggling all day .. lol .. :)

2 more questions:
1) Is there way to check the version of C++ (or compiler version) ?
2) Is Xcode required for a mac to compile C++ programs (I had installed xCode on my mac, so don't know if g++ will work without it).
 

Cromulent

macrumors 604
Oct 2, 2006
6,817
1,102
The Land of Hope and Glory
Thank you so much, was struggling all day .. lol .. :)

2 more questions:
1) Is there way to check the version of C++ (or compiler version) ?
2) Is Xcode required for a mac to compile C++ programs (I had installed xCode on my mac, so don't know if g++ will work without it).

1) g++ -v
2) No, Xcode is what installs g++ for you and all the associated development tools and libraries (such as make etc). Of course you also get the advantage of the Xcode IDE which I think is probably the best IDE I have used on any platform.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.