我在win7下按了VC++6.0,但是编译的程序怎么都运行不了,求助~~
#include<stdio.h>intmain(){chara;inti,j;floatx,y;printf("Inputa,i,j,x,y\n");scanf("%a...
#include <stdio.h>
int main()
{
char a;
int i,j;
float x,y;
printf("Input a,i,j,x,y\n");
scanf("%a,%d,%d,%f,%f",&a,&i,&j,&x,&y);
printf("ch=\'%a\', ASCII =%d\n",a,a);
printf("i=%-7dj=%d\n",i,j);
printf("x=%-8.2fy=%.2f\n",x,y);
return 0;
}
然后是运行再赋值,但是出现了下边的错误提示:
--------------------Configuration: zuoye - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
zuoye1.obj - 1 error(s), 0 warning(s)
不知道是兼容性问题,还是我编的有问题,求大神帮忙啊~~ 展开
int main()
{
char a;
int i,j;
float x,y;
printf("Input a,i,j,x,y\n");
scanf("%a,%d,%d,%f,%f",&a,&i,&j,&x,&y);
printf("ch=\'%a\', ASCII =%d\n",a,a);
printf("i=%-7dj=%d\n",i,j);
printf("x=%-8.2fy=%.2f\n",x,y);
return 0;
}
然后是运行再赋值,但是出现了下边的错误提示:
--------------------Configuration: zuoye - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
zuoye1.obj - 1 error(s), 0 warning(s)
不知道是兼容性问题,还是我编的有问题,求大神帮忙啊~~ 展开
7个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询