如果这么写,
int *f, g;
并没有声明2个指针,编译器自己会识别,f是一个指针,g是一个整型变量;
void CTszbView::OnDraw(CDC* pDC)
{
CTszbDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CString str1;
int * p1, a1;
a1 = 109;
p1 = &a1;
str1.Format("%d", a1);
pDC->TextOut(30, 30, str1);
str1.Format("%d", *p1);
pDC->TextOut(30, 60, str1);
}