1. How to return multiple values from the function(for example how to return the four multiple float values from the function)? I tried in internet, but not satisfied with the answer. Could anyone send the document/link for the same.
1. You can use multiple arguments passed by reference. Or you could package them in a single object like a tuple or a struct. I believe you can now use "structured bindings" (which seem to do roughly the same thing as returning a tuple). If they are all of the same type you could just put your multiple values in an array or vector.
2. c++ doesn't have doc strings like python's. Though a few comments at the start of your functions never did any harm ...
There do seem to be a few dangers inherent in the practice of learning python first and then assuming that its grammar will carry over to other languages.