提示错误 c3861 我已经声明过了,为什么还是报错???求高手帮帮忙

// ATM人机交互界面.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
int i; float lef=1000; //默认余额1000元
void main()
{
void MainMenu(); //主函数
void LanguageMenu(); //语言选择函数
void Query(float); //查询函数
float Deposit(float); //存款函数
float Withdraw(float); //取款函数
LanguageMenu();
i=getch();
system("cls");
MainMenu();
}
void MainMenu() //主菜单程序
{
int a;

if(i==1)
{
printf("1.查询\n");
printf("2.存款\n");
printf("3.取款\n");
printf("4.退出\n");
}
if(i==2)
{
printf("1.Query\n");
printf("2.Deposit\n");
printf("3.Withdraw\n");
printf("4.Exit\n");
}

a=getch();
system("cls"); //清屏
switch(a)
{
case '1': Query(lef); break; //调用查询函数
case '2': lef=Deposit(lef); break; //调用村款函数
case '3': lef=Withdraw(lef);break; //调用取款函数
case '4': break;
default: break;
}
}

void LanguageMenu() //语言选择菜单函数
{
printf("1.中文\n");
printf("2.English\n");
printf("3.退出/Exit\n");
}
//查询菜单函数
void Query(float)
{
char abc;
if(i==1)
printf("%f,此账户有¥%f元。\n按任意键继续",lef);
else
printf("There is %f yuan left in this count.\nPress any button to go on",lef);
abc=getch();
system("cls");
MainMenu();
}
//存款菜单函数
float Deposit(float) {
char bs;
float d1;
if(i==1)
{
printf("请输入您需要存入的数目: ¥");
scanf("%f",&d1);
printf("按任意键继续");
}
else
{
printf("Please input the count you want to deposit: $");
scanf("%f",&d1);
printf("\nPress any button to go on\n");
}
lef=lef+d1;
return lef;
bs=getch();
system("cls");
MainMenu();
}

float WithDraw(float) //取款菜单函数
{
char as;
float w;
if(i==1)
{
printf("请输入取款金额:¥");
scanf("%f",&w);
while(w>lef)
{
printf("余额不足,请重新输入");
scanf("%f",&w);
}
}
else
{
printf("Please input the count you want to withdraw:$");
scanf("%f",&w);
while(w>lef)
{
printf("The money left in your count is less than you want,please try agin");
scanf("%f",&w);
}
}
lef=lef-w;
return lef;
as=getch();
system("cls");
MainMenu();
}

第1个回答  2011-03-08
注意WithDraw函数的大小写(声明,使用,原型都必须一致)。
另外,我只保证能通过编译,但程序显然是不能正确运行的,具体的情况你自己慢慢摸索吧追问

修改过了,为什么还是不行呢