NomanProdhan
Level 1
Write the reason you're deleting this FAQ
Wecan read and display a line of text more efficiently using and line-oriented
input function getline(). The getline() function reads a whole lineof text that ends with a newline character (transmitted by the RETURN key).
This function can be invoked by using the object cin as follows:
cin.getline (line, size); |