不是vs2012的问题。把long double yyfc1(long double a11, long double b11) 改成long double yyfc1()。函数不需要参数赛,你的参数是通过cin输入的。或者,你调用函数时就给行参赋值:yyfc1(8, 3); //在这出错。