语句符号问题出错求解
#includeusing namespace std;
void mian() {
int flower,liwu,birthdaycake,gongzi,cunkuan=0;//定义项
cin>>flower;//输入项
cin>>liwu;//输入项
cin>>birthdaycake;//输入项
cin>>gongzi;//输入项
for(flower=0;flower<=999;flower++)//对flower进行循环
for(liwu=0;liwu<=20;liwu++)//对liwu进行循环
for(birthdaycake=0;birthdaycake<=10;birthdaycake++)//对birthdaycake进行循环
cunkuan+=gongzi;//自加运算
flower=flower++;//自加运算
liwu=liwu++;//自加运算
birthdaycake=birthdaycake++;//自加运算
}
int main()
{
int boy,girl,car,house,flower,liwu,birthdaycake,gongzi,cunkuan;//定义项
if(car==1&&house==1)//if条件语句:同时满足车和房子
cout<<"boy get girl"<<endl;<ENDL;
else: error C2143: syntax error : missing ';' before ':'
for(flower>=520:liwu=20:birthdaycake=20:cunkuan=100000)
cout<<"boy get girl"<<ENDL;
return 0;
}
红色字体处是软件提示错误。。。。想问一下,这个是该全部重写还是改一点就可以了呢?