为什么我用visual studio 2008编译C程序时会提示找不到文件,怎么解决,下面是我编写的程序

#include < studio.h >

float maximum( float x, float y );
float minimum( float x, float y );
void prn_info( void );

int main( void )
{
int i, n;
float max, min, x;

prn_info();
printf( "Input n: " );
scanf( "%d", &n );
printf( "\nInput %d real numbers: ", n );
scanf( "%f", &x );
max = min = x;
for( i = 2; i<=n; ++i ){
scanf( "%f", &x );
max = maximum(max, x);
min = minimum(min, x);
}
printf( "\n%s%11.3f\n%s%11.3f\n\n",
"Maximum value: ", max,
"Minimum value: ", min);
return 0;
}

float maximum(float x, float y)
{
if ( x > y )
return x;
else
return y;
}

float minimum(float x, float y)
{
if ( x < y )
return x;
else
return y;
}

void prn_info(void)
{
printf( "\n%s\n%s\n\n",
"This program reads an integer value for n, and then"
"processes n real numbers to find max and min value.");
}
这个程序是我完全按照书上的打的,不知道是软件的问题,还是程序的问题,还是我把这个程序那个地方打错了

第1个回答  2012-04-15
#include < studio.h > // stdio.h本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网