1.

Differentiate between get() and getline().

Answer»

get()

getline()

belongs to the class ifstreambelongs to the class ifstream
to read a single character from the associated streama string I/O function that is used to read a whole line of text to text files
Syntax: ifstream object.get(char);Syntax: fin.getline(buffer, SIZE);


Discussion

No Comment Found