s252000947 2016-08-14 08:03 采纳率: 0%
浏览 1611
已结题

新手syntax error : missing ';' before 'private'

#ifdef _DEBUG
void CWriterView::AssertValid() const
{
CView::AssertValid();
}

void CWriterView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}

CWriterDoc* CWriterView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWriterDoc)));
return (CWriterDoc*)m_pDocument;
}
#endif
private:
CPoint m_ptStart,m_ptEnd;
bool m_isDragging;

void CWriterView::OnLButtonDown(UINT nFlags, CPoint point)
{

m_ptStart=point;
m_ptEnd=point;
SetCapture();
m_isDragging=true;
CView::OnLButtonDown(nFlags, point);

}

void CWriterView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS));
if(m_isDragging)
{
CClientDC cDC(this);
cDC.SetROP2(R2_NOT);
cDC.MoveTo(m_ptStart);
cDC.LineTo(m_ptEnd);
cDC.MoveTo(m_ptStart);
cDC.LineTo(point);
m_ptEnd=point;
}
CView::OnMouseMove(nFlags, point);
}

void CWriterView::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
if(m_isDragging)
{
m_isDragging=false;
::ReleaseCapture();
}

CView::OnLButtonUp(nFlags, point);

}

  • 写回答

1条回答 默认 最新

  • 董金锁 2016-08-15 05:24
    关注

    你是真不懂还是假不懂,根据翻译,你得private前缺少 “;”号,你自己检查一下代码

    private: 这个是什么意思?你能解释一下吗

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘