Home > Back-end >  Programming problem ask everybody to help, thank you. The error C2039: 'fstream: is not a membe
Programming problem ask everybody to help, thank you. The error C2039: 'fstream: is not a membe

Time:10-07

The source code is as follows:
# include "stdafx. H"
# include 3 d - SCM. "h"
#include
#include
#include

using namespace std;
Using STD: : fstream;

Typedef CTypedPtrArray
The class C3DVecList: public C3DVecListBase
{
Public:
Void OutputToText (STD: : fstream & amp; Cout);
};

///////function definition
Void C3DVecList: : OutputToText (STD: : fstream & amp; Cout)
{
ASSERT_VALID (this);

Using STD: : endl;
Cout<" C3DPointList "& lt; & lt; SPACE<& lt; This<& lt; SPACE<& lt; M_nSize & lt; & lt; Endl;

for(int i=0; i{
Cout<& lt; This - & gt; GetAt (I) & lt; & lt; Endl;
}
}
Can not find out where the problem is, please help

CodePudding user response:

Has been resolved, the problem is that using namespace STD. Using STD: : fstream; The two sentence statement after the standard header file instead of their own definition of header files, immediately after the hope can help meet the same problem people

CodePudding user response:

reference 1st floor cindystly response:
has been resolved, the problem is that using namespace STD. Using STD: : fstream; The two sentence statement after the standard header file instead of their own definition of header files, immediately after the hope can help meet a same problem


Uh, uh, uh, find out
  • Related