The function getline() is used to read a string.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy