C++ has similarities with Java. So if you are experienced with Java, it should be quite easy to learn C++.
[quote]I am trying to implement an algorithm into the source code but i have no idea how to do it. Have no idea how to link the algorithm to the qml files.[/quote]However, your question is too vague for us to answer properly. Please give us some details of what you want to do, and what you have already tried.
You can start by reading these pages:
http://qt-project.org/doc/qt-5/qtqml-cppintegration-topic.html
http://qt-project.org/doc/qt-5/qtqml-cppintegration-interactqmlfromcpp.html