--------------------Configuration: 3 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
3.exe - 1 error(s), 0 warning(s)
#include<stdio.h>
#include<conio.h>
int demo(int a,int b)
{
if(a%b != 0)
demo(b,a%b);
else
return b;
}
void main()
{
int a,b;
printf("input a,b:");
scanf("%d %d",&a,&b);
printf("Common demo of a,b is %d\n",demo(a,b));
getch();
}追问
#include<conio.h>
int demo(int a,int b)
{
if(a%b != 0)
demo(b,a%b);
else
return b;
}
void main()
{
int a,b;
printf("input a,b:");
scanf("%d %d",&a,&b);
printf("Common demo of a,b is %d\n",demo(a,b));
getch();
}追问
知道程序没错,但运行不了,提示出现错误,是什么原因
程序没错,就是运行不了,提示有错误
追答我按你的能运行,有一些修改,自己看下
追问我用vc++ 编码是对的但老是提示 -Configuration: 3 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
3.exe - 1 error(s), 0 warning(s)
运行不了,是什么原因
编码是网上复制正确的~是vc++ 6.0编译器问题还是其他问题,电脑系统是win10
追答你应该是vc++的配置问题,你的cl.exe路径不对吧,我的vc6.0没问题
追问谢谢,我装个vc6.0看看
温馨提示:答案为网友推荐,仅供参考