what are libraries in c++?
what's their use?

A library is a collection of "blackbox" functions with some "common" functionality.
Consider the Math library Click Here
You just include this lib in your code and you are now ready to use any of its functions in your code.
An alternative is to write any of the math functions you need in C++ yourself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.