帮忙查错:missing storage-class or type specifiers

来源:百度知道 编辑:UC知道 时间:2024/06/06 05:32:06
以下是源程序和错误代码:
http://hi.baidu.com/feng3436/blog/item/e7afb43d9e86e9e63d6d9715.html
修改后的程序除了逻辑错误之外没有编译错误,能否告知改正编译错误的方法,和错误产生的原因
我和之前的程序比对过,但没发现有什么不同。
我再看了一遍,原来是起分隔作用的*****号没有被注释掉。谢谢了。

#include<iostream>
using namespace std;
void main()
{
int proexp(int);//程序说明
proexp(1);//程序初始说明
for(;;)
{
char menuopt;int count=0;
char menopt();int inferr(int);int course(int& count);
proexp(2);//程序执行说明
menuopt=menopt();//菜单选项,返回'E':退出,返回'G':继续
if(menuopt==('E'||'e')) exit(0);//选择选项执行
else if(menuopt==('G'||'g')) ;
else
{
inferr(1);continue;
}
course(count);
}

}
//*****************************
int course(int& count)
{
count++;if(count==2) return 0;
for(;;)
{
double price=1;long int number=0;int detopt;
int datdet(const double& price,const long int number);//数据检测,price number return:符合概要求 0;!0 0 1;不合要求 1;0 !0 2;0 0 3;
char hint(double &price,long int &number);//提示开始并输入price和number,完成接收数据和清空流
int mondea(double &price,long int &numb