简体   繁体   中英

trying to figure out how to use the math library in C++

I was wonder how you use the math library in C++? I'm still pretty new to the language and not sure how to use this. I think that I have have to put something at the beginning of my code but I'm not sure where to look or what do to.

At the start of the file that you would like to use math in, you need the following line of code:

#include <cmath>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM