Object Oriented Programming20785 marksUnformatted Input/Output
What is the use of get and getline functions? Explain with suitable example.
What is the use of get and getline functions? Explain with suitable example. [5]
Both get() and getline() are input functions in C++ used to read character(s) or strings from the input stream (cin). They are particularly useful when reading input that includes whitespace characters (spaces, tabs, newlines), which the standard operator cannot handle properly. --- The get() fun...