// This function reads in text entered by the user until they hit the // return key. It returns a string containing the text entered by the // user. string get_a_line() { char a_char; string a_string; while ((a_char = getchar()) != '\n') a_string += a_char; return a_string; }