Which of the following will allow an entire line of text to be read into a string object, even if it contains embedded blanks?
A) cin.get()
B) getline()
C) cin.ignore()
D) cin >>
E) both A and B, but not C or D.
Correct Answer:
Verified
Q10: The object causes data to be input
Q11: When an arithmetic expression contains two or
Q12: When the final value of an expression
Q13: The following 4 lines of C++ code,
Q14: In C++, a value can be raised
Q16: To use the sqrt()function, or other mathematical
Q17: causes a program to wait until information
Q18: Hand tracing a program is
A)a program design
Q19: Which of the following statements about named
Q20: The cin object must be followed by
A)one
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents