[单选题]

执行如下程序后的输出结果是()。include include using namespace std;int ma

执行如下程序后的输出结果是[ ]。

include <iostream>

include <fstream>

using namespace std;

int main ( )

{

char s[25];

ofstream fl("data.txt");

f1<<"C++ Programming";

f1.close ();

ifstream f2 ("data.txt");

参考答案与解析:

相关试题

以下程序执行后输出的结果是()。 include include using n

[主观题]以下程序执行后输出的结果是()。 include include using namespace std; int以下程序执行后输出的结果是[ ]。include<iostream>include<fstream>using namespace std;int main(){ofstream ofile("D://temp.txt");if(!ofile){cout<<"temp.txt cannot open"<<endl;return 0;}ofile<<"This is a bo

  • 查看答案
  • 如下程序的输出结果是______。 include using namespac

    [主观题]如下程序的输出结果是______。 include using namespace std; class Pet{ char nam如下程序的输出结果是______。include<iostream>using namespace std;class Pet{char name[10];public:Pet(char*nanle){strcpy(this->name,name);}const char*getName( )const{return name;}virtual void call(

  • 查看答案
  • 如下程序的输出结果是______。 include using namespac

    [主观题]如下程序的输出结果是______。 include using namespace std; class pumpkin{ publ如下程序的输出结果是______。include<iostream>using namespace std;class pumpkin{public:pumpkin( ){++count;}~pumpkin( ){--eount;}static void total_count( ){cout<<count<<"pumpkin(s)"<<endl;}privat

  • 查看答案
  • 如下程序的输出结果是______。 include using namespac

    [主观题]如下程序的输出结果是______。 include using namespace std; class Wages{£¯£¯“工资”如下程序的输出结果是______。include<iostream>using namespace std;class Wages{ //“工资”类double base; //基本工资double bonus; //奖金double tax; //税金public:Wages(double CBase,double CBonus,doable CTax):bas

  • 查看答案
  • 如下程序的输出结果是______。 include using namespac

    [主观题]如下程序的输出结果是______。 include using namespace std; int funl(int x){retu如下程序的输出结果是______。include<iostream>using namespace std;int funl(int x){return++x;}int fun2(int&x){return++x;}int main( ){int x:1,y=2;Y=funl(fun2(x));cout<<x<<','<<y;return 0;}

  • 查看答案
  • 执行下面程序后输出的结果是()。#include using namespace

    [单选题]执行下面程序后输出的结果是()。include using namespace std;int main(){ int a[4][4执行下面程序后输出的结果是( )。 #include <iostream> using namespace std; int main(){ int a[4][4]={{1,2,3,-4},{7,-12,-13,8},{-21,9,0,-24},{-31,10,-33,11}}; int i,j,s=0; for(i=0;i<4;i++){ for(j=0;j<4;

  • 查看答案
  • 下列程序的输出结果是______。 include include using

    [单选题]下列程序的输出结果是______。 include include using namespace std; voi下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char &C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<

  • 查看答案
  • 以下程序执行后的输出结果是#include using namespace st

    [单选题]以下程序执行后的输出结果是include using namespace std;void try(int,int,int,int)以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y

  • 查看答案
  • 以下程序运行后的输出结果是()。 include using namespace

    [主观题]以下程序运行后的输出结果是()。 include using namespace std; int main() {int i=10,以下程序运行后的输出结果是[ ]。include<iostream>using namespace std;int main(){int i=10,i:0;do{j=j+i;i--;}while(i>2);cout<<j<<end1;return 0;}

  • 查看答案
  • 下面程序运行后输出的结果是()。 include using namespac

    [主观题]下面程序运行后输出的结果是()。 include using namespace std; class example{ const下面程序运行后输出的结果是[ ]。include <iostream>using namespace std;class example{const int m;public:example(int i):m(i){}void pr(){cout<<"m="<<m<<endl'}};int main(){example x(100);x.pr();retur

  • 查看答案