标题:这段程序应该怎么改?
只看楼主
weijiy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-11-25
结帖率:100%
已结贴  问题点数:20 回复次数:1 
这段程序应该怎么改?
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
搜索更多相关主题的帖子: expected warning close 
2013-12-27 22:19
yuccn
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:何方
等 级:版主
威 望:167
帖 子:6809
专家分:42393
注 册:2010-12-16
得分:20 
n没有声明,函数没定义!不是有提示的吗!

我行我乐
我的博客:
http://blog.yuccn. net
2013-12-29 21:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-425797-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.309959 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved