标题:error C22226 错误
只看楼主
lyl930130
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:323
专家分:111
注 册:2013-5-13
结帖率:91.43%
已结贴  问题点数:20 回复次数:3 
error C22226 错误
error C22226 错误
#include......
struct temp_state_data {unsigned char state[6];float state_data[2];};
......

int main()
{
}


void cal_fre()
{
    int i,j,k;
    sturct temp_state_data temp_data[200];  //就这个地方报错,error C2226 :语法错误:意外的“temp_state_data”类型
   

    看了书还是不清楚到底哪个地方出问题了。
2014-11-18 08:15
lu3664198
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:55
专家分:185
注 册:2014-11-16
得分:20 
sturct...

wwwwwww...~~;
本人为大一新生,说的不好不要拍我 ~ ( ̄~ ̄) ;
2014-11-18 09:21
lyl930130
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:323
专家分:111
注 册:2013-5-13
得分:0 
回复 2 楼 lu3664198
那个是打的时候手误,代码里是struct
2014-11-18 20:37
lyl930130
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:323
专家分:111
注 册:2013-5-13
得分:0 
用的是VS2012
2014-11-19 16:37



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




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

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