What is the mean of line res.substring (0,vidx)+""3.14''+res.substring(vidx+2

what is the mean of line res.substring (0,vidx)+""3.14’’+res.substring(vidx+2

take substring from 0 to vidx position

a

add 3.14 to the string

take the substring from vidx position+2 uptil the string end

http://www.cplusplus.com/reference/string/string/substr/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.