主观

下面程序的运行结果如下:

    This is line1

    This is line2

    This is line3

在下划线处填上缺少的部分。源程序如下:

    #include

    #include_________

    using namespace std;

    void main( )

    {

    fstream fin, fout;

    fout.open("my. txt", ios:: out);

    if(!fout.is_open( ))

       return;

    for(int i=0;i<3;i=i+1)

       fout<<"This is line"<

    fout.close( );

    fin.open("my.txt",ios:: in);

    if(! fin.is_open( ))

       return;

    char str[100];

    while(_________)

    {

      fin.getline(str,100);

      cout<

    }

    fin.close( );

    }

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服