这段程序应该怎么改?
fopen("zaobj.txt","w");for(int i=1;i++;i<n)
{
y(n)=sin(2*3.1415926/m_zhq*i*10);
n=m_bgsh*m_zhq/100;
printf("%d\n",y(n));
}
close;
错误提示:
I:\zaobj\zaobjDlg.cpp(167) : error C2065: 'n' : undeclared identifier
I:\zaobj\zaobjDlg.cpp(167) : warning C4552: '<' : operator has no effect; expected operator with side-effect
I:\zaobj\zaobjDlg.cpp(169) : error C2065: 'y' : undeclared identifier
I:\zaobj\zaobjDlg.cpp(169) : error C2065: 'sin' : undeclared identifier
I:\zaobj\zaobjDlg.cpp(169) : error C2677: binary '/' : no global operator defined which takes type 'class CString' (or there is no acceptable conversion)
I:\zaobj\zaobjDlg.cpp(170) : error C2676: binary '*' : 'class CString' does not define this operator or a conversion to a type acceptable to the predefined operator
I:\zaobj\zaobjDlg.cpp(173) : error C2065: 'close' : undeclared identifier