首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
当使用ofstream流类定义一个流对象并打开一个磁盘文件时,文件的默认打开方式为( )。
当使用ofstream流类定义一个流对象并打开一个磁盘文件时,文件的默认打开方式为( )。
admin
2016-11-23
23
问题
当使用ofstream流类定义一个流对象并打开一个磁盘文件时,文件的默认打开方式为( )。
选项
A、ios base::in
B、ios_base::binary
C、ios_base::inlios base::out
D、ios_base::out
答案
D
解析
对于ofstream,默认的打开方式是ios base::out,ofstream只能用于输出,它没有提供任何用于输入的操作。
转载请注明原文地址:https://kaotiyun.com/show/vzAp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
在类中定义和实现的函数可以称为【】。
下列关于多态性的描述,错误的是
在C++语言中每个类都有一个【】指针,该指针指向正在调用成员函数的对象。
为了便于对照检查,测试用例应由输入数据和预期的【】两部分组成。
一个类的友元函数能够访问该类的
下面程序的功能是把316表示为两个加数的和,使两个加数分别能被13和11整除,在划线处应填入的选项是#include<iostream.h>voidmain(){
以下不属于对象的基本特点的是
有如下程序:#include<iostream>usingnamespacestd;classXX{protected;intk;public:
在算法正确的前提下,评价一个算法的两个标准是【】。
下面叙述错误的是()。
随机试题
柔性方法解决的问题是()。
在PowerPoint中为幻灯片设置动画时,对象出场或离场的声音只能从提供的各种声音效果中选择。()
A.黏膜肥厚,皱襞深而宽似脑回状B.黏膜充血水肿,有点状出血或糜烂C.两者均有D.两者均无慢性萎缩性胃炎
诊断B-CLL的免疫标记中,下列最有价值的是
发布药品广告,错误的是
小儿风寒泻的治则是小儿脾虚泻的治则是
宏观调控是指政府实施政策措施以调节市场经济的运行。根据上述定义,下列属于宏观调控的是:
计算极限.
Researchonanimalintelligencealwaysmakesmewonderjusthowsmarthumansare.【C1】______thefruitflyexperimentsdescribedin
Theunauthorized(未经授权的)copyingofcomputerprogramsbyAmericanbusinessesalonedeprivedsoftwarepublishersof$1.6billion
最新回复
(
0
)