The hard way for anything on your list is to study algorithms, data structures and file formats for the subject of interest.
The easy way is to find someone who has already done all the hard work, and provided a library to do what you want.
https://www.google.co.uk/search?q=ho...ary+to+c%2B%2B
> Do I ... by copying and pasting their source codes directly into a C++ program?
Absolutely not.
You find (or write) library code.
Libraries are reusable code you don't have to touch at the source code level (unless you're fixing bugs in the library).