如题,是什么意思?

解决方案 »

  1.   

    意思是这个类没有定义拷贝构造函数,可能你的一些用法需要使用拷贝构迁函数.CStdioFile::CStdioFile(const CStdioFile& source)
    {
        //加你要的操作
    }
      

  2.   

    MSDN上说:
    CStdioFile
    A CStdioFile object represents a C run-time stream file as opened by the run-time functionfopen. Stream files are buffered and can be opened in either text mode (the default) or binary mode.Text mode provides special processing for carriage return–linefeed pairs. When you write a newline character (0x0A) to a text-mode CStdioFile object, the byte pair (0x0D, 0x0A) is sent to the file. When you read, the byte pair (0x0A, 0x0D) is translated to a single 0x0A byte.//看这里
    The CFile functions Duplicate, LockRange, and UnlockRange are not supported for CStdioFile. If you call these functions on a CStdioFile, you will get a CNotSupportedException.
      

  3.   

    书写拷贝构造函数,
    CStdioFile没有拷贝构造函数
      

  4.   

    你用CStdioFile做了什么操作,
    什么功能。我用来读文件都不会啊
      

  5.   

    我声明了一个静态成员函数
    Class1::func(CStdioFile fFile)
    {
    ....
    }
    CLass1::init()
    {
      CStdioFile f;
      func(f)
      ...
    }
    编译的时候就出错了
      

  6.   

    Class1::func(CStdioFile & fFile)
    {
    ....
    }
    CLass1::init()
    {
      CStdioFile f;
      func(f)
      ...
    }