Which of the following statements gets a string from the keyboard until the newline character is encountered and assigns the string to a variable named myStr?
A. getline(cin, myStr, '/n');
B. getline(myStr, cin);
C. getline(myStr, cin, '\n');
D. getline(cin, myStr);
Answer: D
You might also like to view...
Polymorphism specifically enables the creation of programs that handle:
a) classes that are containers for other classes b) large amounts of data with efficiency c) a wide variety of classes in a general manner d) None of the above
What is not a common format for a number control?
A) Currency B) Percent C) Accounting D) Comma
Use the ________ command to change the display of headings in narrow columns or for multiple rows
A) Text Direction B) Change Direction C) Change Position D) Align Heading
Which technology was designed to be a short range networking technology (up to 10 meters) that could connect different devices together?
What will be an ideal response?