Question 7: Which of the following correctly identify benefits of the getline() member function for cin over the extraction oper
来源:互联网 发布:淘宝假符咒店揭露 编辑:程序博客网 时间:2024/05/16 07:32
A. The getline() function by default, accepts whitespace, and returns on seeing the /n character, whereas the extraction operator returns when it encounters any whitespace character.
B. Delimiters indicating end of input can be specified to the getline() function, whereas the extraction operator has no such facility.
C. The getline() function can be overloaded to accept different argument types, whereas the extraction operator cannot be overloaded.
D. The number of bytes to read can be specified to the getline() function, whereas it cannot be done with the extraction operator.
E. The getline() function can be used like a manipulator with cin, whereas the extraction operator cannot be used as a manipulator.
A B D
- Question 7: Which of the following correctly identify benefits of the getline() member function for cin over the extraction oper
- Question 5: Which of the following statements regarding the benefits of using template functions over preprocessor #define macro
- (NOT CLEAR)Question 47: Which of the following statements correctly describe functions of the endl manipulator for the ostream o
- (NOT CLEAR)Question 18: In the given C++ code snippet, which of the following statements correctly identify how Mon of enum DOW
- Question 17: Which of the following identify const-correctness failures in the C++ program below?
- Question 4: Which of the following statements correctly describe the code below in C++?
- Question 9: Which of the following statements correctly describe the results of executing the code below in C++?
- Question 16: Which of the following methods can a developer use to override the default terminate() function in C++?
- Question 41: Which of the following operators must be overloaded by function objects in the Standard Template Library?
- Question 29: The C++ code below generates a compiler error. Which of the following solutions can be used to correctly access the
- Question 13: Which of the following declarations of function main are standard or standard conforming extensions? (Please note t
- Question 23: Which of the following C++ keywords are designed to speed up execution of a C++ function?
- Question 39: Which of the following are possible outputs of the C++ code below?
- Question 26: Which of the following options describe the expected overhead for a class that has 5 virtual functions?
- Question 48: In C++, which of the following statements accurately describe a base class destructor calling a virtual function ov
- Question 25: For the code snippet below, which of the following statements provide the correct order of constructor calls when o
- Question 28: Which of the following statements accurately describe the new[] operator in C++?
- Question 37: In C++, which of the following statements regarding the code below are valid?
- android 所有布局属性和UI控件
- 二,nutch 1.0 web应用部署
- 【转】Android 提示 “Unparsed aapt error(s)! Check the console for output”. 这个错误
- 第四章练习题 4-1,4-2
- 三,nutch 1.0 爬虫配置与运行
- Question 7: Which of the following correctly identify benefits of the getline() member function for cin over the extraction oper
- [转]VC使用CRT调试功能来检测内存泄漏
- Cvbox2D
- Android线程间通信
- Lib库使用学习笔记
- GridView鼠标移上某行显示浮动DIV提示信息
- Middlegen-Hibernate-r5 配置教程
- 11月在网易博客发表的文章(曲径通幽-深谋远虑-新浪博客)
- 编译WebKit的步骤