精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • C++pi的定義

    C++pi的定義
    我定義了類(lèi)CText
    class CText:public CDraw
    {...
    protected:
    const float pi;
    public:
    CText();
    CText(short ColorPen,short ColorBrush,short LineWide,short
    LineType,short Layer,int id_only,BOOL Delete,float StartX,float StartY,float Angle1,float Angle2,float TextHeight,float TextWide,float OffWide,unsigned char TextFont,CString Text)
    :CDraw(ColorPen,ColorBrush,LineWide,LineType,Layer,id_only,Delete),pi(float(3.14159265))
    {
    m_StartX=StartX;
    m_StartY=StartY;
    m_Angle1=Angle1;
    m_Angle2=Angle2;
    m_TextHeight=TextHeight;
    m_TextWide=TextWide;
    m_OffWide=OffWide;
    m_TextLong=Text.GetLength(); //計(jì)算字符長(zhǎng)度
    c_Text=Text;
    }
    }
    ...
    };
    但是顯示
    --------------------Configuration: Draw - Win32 Debug--------------------
    Compiling...
    Draw.cpp
    DrawDoc.cpp
    DrawView.cpp
    Generating Code...
    Linking...
    DrawDoc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CDraw::DPtoVP(float,float,int *,int *)" (?DPtoVP@CDraw@@QAEXMMPAH0@Z)
    DrawDoc.obj : error LNK2001: unresolved external symbol "public: int __thiscall CDraw::DLtoVL(float)" (?DLtoVL@CDraw@@QAEHM@Z)
    Debug/Draw.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.
    Draw.exe - 3 error(s), 0 warning(s)
    其他人氣:664 ℃時(shí)間:2020-03-17 09:30:58
    優(yōu)質(zhì)解答
    你這個(gè)是mfc工程吧?自己還是好好看看哪個(gè)工程的錯(cuò)誤吧,然后一點(diǎn)點(diǎn)把錯(cuò)誤的范圍縮小.已經(jīng)提示你是DrawDoc文件中的這個(gè)方法CDraw::DLtoVL(float)有問(wèn)題了,你自己在查查把.
    我來(lái)回答
    類(lèi)似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版