我在這先謝謝各位了!!!
//我在用選單所對應的函式呼叫另一個函式時候總是出現 missing ';' before 'tag::id'
void CTest_1View::Onmove() //我定義的選單所對應的函式
{
for(int i=0;i<Num;i++)
D[i]=movegraph(P[i]);
// TODO: Add your command handler code here
}
Point_2D CTest_1View::movegraph(Point_2D p)//這是在我的test_1classes標簽下通過右擊test_1view—>add member function添加的函式
{
Point_2D PO;
PO.x=p.x+400;
PO.y=p.y+400;
return PO;
}
/*struct Point_2D
{
double x;
double y;
};這是我在頭檔案下定義的全域變數*/
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/143404.html
上一篇:型別轉化問題
