首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。 #include<fstream.h> void main(){ 【 】
下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。 #include<fstream.h> void main(){ 【 】
admin
2013-02-27
29
问题
下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。
#include<fstream.h>
void main(){
【 】
f<<"How are you!"<<end1;
f.close();
}
选项
答案
ofstream f( "abc" , los: :app)
解析
转载请注明原文地址:https://kaotiyun.com/show/6OVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
按照C语言规定的用户标识符命名规则,不能出现在用户标识符中的是()。
某系统结构图如下所示: 该系统结构图的最大扇入数是()。
设数据结构B=(D,R),其中 D={a,b,c,d,e,f} R={(f,a),(d,b),(e,d),(c,e),(a,c)} 该数据结构为()。
有以下程序: #include<stdio.h> main() { intm=1,n=2,*p=&m,*q=&n,*r; r=p;p=q;q=r printf("%d,%d,%d,%d\n",m,n,*p,*q); } 程序的
某棵树中共有25个节点,且只有度为3的节点和叶子节点,其中叶子节点有7个,则该树中度为3的节点数为()。
以下关于逻辑运算符两侧运算对象的叙述中正确的是()。
下列模式中,能够给出数据库物理存储结构与物理存取方法的是
假定要对类AB定义加号操作符重载成员函数,实现两个AB类对象的加法,并返回相加结果,则该成员函数的声明语句为()。
在面向对象方法中,信息隐蔽是通过对象的【】性来实现的。
在一个容量为25的循环队列中,若头指针front=16,尾指针rear=9,则该循环队列中共有上【】个元素。
随机试题
设E(X)=1,E(Y)=6,E(XY)=7,则Cov(X,Y)=________
是属于HMG—CoA还原酶抑制剂,有内酯结构,属于前药,水解开环后有3,5-二羟基羧酸的是()
下列民事行为中有效的是:()
赢得值法中,当已完工作预算费用/计划工作预算费用()时,表示进度提前,即实际进度比计划进度快。
违反有关动植物检疫规定,引起重大动植物疫情的,比照刑法第一百七十八条的规定追究 ( )责任。
制定收账政策,需要权衡的内容包括()。
根据一个人独立或顺从的程度,可以把人的性格分成独立型与顺从型。()
斯地驳尔是一种经常毁坏北美谷类庄稼的有害昆虫。在其他一些大陆上,斯地驳尔对庄稼的毁坏可以被某种蜂所控制。因为这种蜂只以斯地驳尔为食,将其引进北美可使庄稼免遭斯地驳尔的毁坏且不危害其他北美的昆虫。下面哪一项是上面论述所基于的假设?
Recentreformefforts(havebeenfocused)onencouraginglifelongorrecurrenteducationtomeet(changingindividualandsocial
Chinalauncheditssecondmannedspacemission.sendingtwoastronautsintoorbitasitopenedanew【B1】______initsambitiousd
最新回复
(
0
)