result love(boy, girl)
{
if( boy.有房() and boy.有车() )
{
boy.set(nothing);
return girl.嫁给(boy);
}
if( girl.愿意等() )
{
while(!(boy.赚钱 > 100,000 and girl.感情 > 8 ) )
{
for( day=1; day [=365; day++)
{
if( day == 情人节 )
if( boy.givegirl(玫瑰) )
girl.感情++;
else
girl.感情--;
if( day == girl.生日)
if( boy.givegirl(玫瑰) )
girl.感情++;
else
girl.感情--;
boy.拼命赚钱();
}
}
if( boy.有房() and boy.有车() )
{
boy.set(nothing);
return girl.嫁给(boy);
}
年龄++;
girl.感情--;
}
return girl.goto( another_boy);
}
这个程序为什么显示上面的错误?电脑上的VC++6.0显示的错误是
C:\Documents and Settings\Administrator\Cpp1.cpp(1) : error C2146: syntax error : missing ';' before identifier 'love'
C:\Documents and Settings\Administrator\Cpp1.cpp(1) : error C2501: 'result' : missing storage-class or type specifiers
C:\Documents and Settings\Administrator\Cpp1.cpp(1) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
Cpp1.obj - 1 error(s), 0 warning(s)
有高手帮忙解决一下