注册 登录
编程论坛 C++教室

我带代码没错误,运行是空的

pchszwzc11 发布于 2012-09-23 11:02, 291 次点击
#include "stdafx.h"
#include "math.h"

int main(int argc, char* argv[])
{
    double y,z;
    int x;
    scanf("%f%f",&y,&z);
    for(x=0;x<100000;x++);
    if(y==sqrt(x+100)&&z==sqrt(268+x))
    {   
        printf("%f%f\n",y,z);
    }
    return 0;
   
}
1 回复
#2
qunxingw2012-09-23 11:16
for();这个“;” 除掉
1