小问题求助,thx!

bh2001zhh 2006-08-10 03:20:02
/*===========================================================
A structure for Fuzzy control
============================================================*/
typedef struct FuzzyCtrl{
float SetPoint; //Desired temperature value
float PerCV; //Percent of control valve run
float Pderror; //误差变化率系数
float Pinching; //微调系数

//float Proportion; // 比例常数 Proportional Const
//float Integral; // 积分常数 Integral Const
//float Derivative; // 微分常数 Derivative Const   

//float LastError; // Error[-1]
float PrevError; // Error[-2]
//float SumError; // Sums of Errors   
} ;


void FuzzyCtrlInit(FuzzyCtrl *pp); //Initialize FuzzyCtrl Structure


在dos 下编译时出现“FuzzyCtrl cannot start a parameter declaration”
可我原来做DSP的时候都这么用的,这是为什么呀??
...全文
196 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bh2001zhh 2006-08-10
  • 打赏
  • 举报
回复
呵呵,不好意思,自己搞错了
}FuzzyCtrl;
tailzhou 2006-08-10
  • 打赏
  • 举报
回复
typedef struct FuzzyCtrl{
...
};
==>
typedef struct {
...
}FuzzyCtrl;
tailzhou 2006-08-10
  • 打赏
  • 举报
回复
typedef struct FuzzyCtrl{
==>
struct FuzzyCtrl{

69,336

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧