有一个类CVector3,在另外一个类中有一个私有成员这样定义:
// This is the vector list of all of our lines
vector<CVector3> m_vLines;
不知道是什么意思?

解决方案 »

  1.   

    定义一个CVector3类的向量m_vLines
      

  2.   

    可我怎么总是提示出错
    源程序是这样定义
    // Debug.h: interface for the CDebug class.
    //
    //////////////////////////////////////////////////////////////////////#if !defined(AFX_DEBUG_H__31F8CDE6_8047_4A78_B75B_463F210F78CD__INCLUDED_)
    #define AFX_DEBUG_H__31F8CDE6_8047_4A78_B75B_463F210F78CD__INCLUDED_#if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    #include "CVector3.h"class CDebug  
    {
    public:
    CDebug();
    virtual ~CDebug();
    // This adds a line to our list of debug lines
    void AddDebugLine(CVector3 vPoint1, CVector3 vPoint2); // This adds a rectangle with a given center, width, height and depth to our list
    void AddDebugRectangle(CVector3 vCenter, float width, float height, float depth); // This renders all of the lines
    void RenderDebugLines(); // This clears all of the debug lines
    void Clear(); private: // This is the vector list of all of our lines
    vector<CVector3> m_vLines;
    };#endif // !defined(AFX_DEBUG_H__31F8CDE6_8047_4A78_B75B_463F210F78CD__INCLUDED_)
      

  3.   

    是不是没有写的缘故:#include <vector> using namespace std;
      

  4.   

    to:zm_speed(HUNTER) ,你是在.net环境下吧
      

  5.   

    vector是属于C++标准库的一个类,它被封装在一个 std的命名空间里边。你的程序使用的mfc,而mfc并不直接支持这命名空间。首先程序应该包括 vector.h程序文件大概应该如下:#include <vector>#include "Vector3.h"...
    ...
    ...
    ...
    class CDebug{
    public:
      

  6.   

    刚刚不小心点了一下,还没有写完,不好意思。呵呵
    vector是属于C++标准库的一个类,它被封装在一个 std的命名空间里边。你的程序使用的mfc,而mfc并不直接支持这命名空间。首先程序应该包括 vector.h程序文件大概应该如下:#include <vector>#include "Vector3.h"...
    ...
    ...
    ...
    class CDebug{
    public:
      ...
      ...
     ....
    privat
     std::vector<CVector3> m_vLines;
     ..
    };我都是这么用的,编译没有问题。