古希腊神话故英雄事:查找编程错误?

来源:百度文库 编辑:高考问答 时间:2024/05/04 22:45:02
#include <iostream.h>
#include <conio.h>
#include <condefs.h>
#pragma hdrstop
int multiply(int,int);
void ShowResult(int);
int main(int argc,char **argv);
{
int x,y,result;
cout<<endl<<"Enter the frist value:";
cin>>x;
cout<<"Enter the second value:";
cin>>y;
result=multiply(x,y);
ShowResult(result);
cout<<endl<<endl<<"Press any key to continue...";
getch();
return 0;
}
int multiply(int x,int y)
{
return x*y
}
void showResult(int res)
{
cout<<"the result is:"<<res<<endl;
}
错在那里
提示[C++ Error] Unit1.cpp(8): E2040 Declaration terminated incorrectly
菜鸟请高手指导
先谢谢了

函数定义是showResult,调用的却是ShowResult C++可是对大小写敏感的喔,return x*y也没有加分号,main函数后面多了个分号