c语言执行 不了 怎么回事

来源:百度知道 编辑:UC知道 时间:2024/06/07 16:44:37
执行时冒出个
远程执行文件
In order to debug remotely or update the remote target,the remote executable file name is required.
远程可执行文件的路径和文件名:
(让填东西)

确定 取消

没有error 没有warning 就是不出现黑色窗口 那位仁兄能帮忙解答呀 感激不尽!我是初学者
#include <stdio.h>
main()
{
int a,b;
a=10;
b=a;
printf("%d",b);
}

0 error(s), 0 warning(s)我们书上的例子(新视野第一分册),
前几天还可以 用的也是新视野的软件

像这样把,规范一点。最后那个getch()是为了暂停一下。
#include <stdio.h>
int main()
{
int a,b;
a=10;
b=a;
printf("%d",b);
getch();
return 0;
}

不知道你用的是什么编译器....

你把程序来看看.
程序没有错误,只有一个警告.
#include <stdio.h>
void main() //这里没有返回类型,所以会有个警告.
{
int a,b;
a=10;
b=a;
printf("%d",b);
}

解决方法:
Build->Debuger Remote Connection->Local->OK
在Build菜单栏下 选择Debuger Remote Connection项,然后会出现一个windows窗体,选择Local 点击 OK按钮就可以了