What is the used of include <cmath> and <iomanip> | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What is the used of include <cmath> and <iomanip>

12th Nov 2018, 6:06 AM
Thinley Norphel
Thinley Norphel - avatar
2 Antworten
+ 13
The cmath header file in C++ is used to allow the user to perform some math related functions like sqrt(), pow(), cos (), abs () and many more. iomanip is used for formatting stuffs which includes functions like setw(), setprecision(), etc.
12th Nov 2018, 6:26 AM
Nova
Nova - avatar
+ 3
cmath include (you guess it) math function Iomanip include some easy to use function for formatting, like width and stuff
12th Nov 2018, 6:22 AM
Taste
Taste - avatar