请问我这段代码怎么总是报错?
int rc;// 返回值
char kword; // 关键字
ads_point pt;
acedInitGet(RSG_NONULL, _T("Keyword1 keyWord2"));
rc = acedGetPoint(NULL, _T("输入一个点或:"), pt);
switch (rc)
{
case RTKWORD: // 输入了关键字
if (acedGetInput(kword) != RTNORM)
return;
if (strcmp(kword, "Keyword1") == 0)
acedAlert(_T("选择的关键字是Keyword1!"));
else if (strcmp(kword,"keyWord2") == 0)
acedAlert(_T("选择的关键字是keyWord2!"));
break;
case RTNORM:
acutPrintf(_T("输入点的坐标是(%.2f, %.2f, %.2f)"), pt, pt, pt);
acutPrintf(_T("%.2f"),rc);
}
// switch
页:
[1]