c语言编程#include "stdio.h"void main(){ int x,y,h,f;printf("输入h和f:");scanf ("%d%d",&h,&f);x=2*h-f/2;y=f/2-h;printf("头=%d,脚=%d\n",h,f);printf("鸡=%d,兔=%d\n",x,y);}--------------------Configuration:Cpp1 - Win32 Debug-------------------
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/14 11:09:33
c语言编程#include "stdio.h"void main(){ int x,y,h,f;printf("输入h和f:");scanf ("%d%d",&h,&f);x=2*h-f/2;y=f/2-h;printf("头=%d,脚=%d\n",h,f);printf("鸡=%d,兔=%d\n",x,y);}--------------------Configuration:Cpp1 - Win32 Debug-------------------
c语言编程
#include "stdio.h"
void main()
{
int x,y,h,f;
printf("输入h和f:");
scanf ("%d%d",&h,&f);
x=2*h-f/2;
y=f/2-h;
printf("头=%d,脚=%d\n",h,f);
printf("鸡=%d,兔=%d\n",x,y);
}
--------------------Configuration:Cpp1 - Win32 Debug--------------------
Linking...
LINK :fatal error LNK1168:cannot open Debug/Cpp1.exe for writing
执行 link.exe 时出错.
Cpp1.exe - 1 error(s),0 warning(s)
这个又是错在哪里呀~
c语言编程#include "stdio.h"void main(){ int x,y,h,f;printf("输入h和f:");scanf ("%d%d",&h,&f);x=2*h-f/2;y=f/2-h;printf("头=%d,脚=%d\n",h,f);printf("鸡=%d,兔=%d\n",x,y);}--------------------Configuration:Cpp1 - Win32 Debug-------------------
LZ没把上次运行的程序关掉,造成了连接错误,把上次运行的程序关掉就行了