On this mastery I will show you what are libraries in C++ and how to use them.<\/p>\n
<\/p>\n
As you may have noticed, the first line of code we\u2019ve been using is always #include <iostream>. This is called a library and they contain commands that you can use in your program. There are more of them, and you can check a list of libraries and their uses here<\/a>.\u00a0<\/i><\/b><\/p>\n Library iostream includes the usage of cin and cout in our program, and strictly talking, that\u2019s all we\u2019ve been using for our programs. There\u2019s a library called cmath that includes the usage of more complex mathematical operations. We are going to focus of this library today and use the command for square root, this library will allow us to simply use the command sqrt instead of making all the manual calculations. So, do as follows:<\/p>\n