入门级的C语言问题!
#include <stdio.h>
void main()
{
int i=1;
int sum=0;
while( i<=50 )
{
sum=sum+i;
i++;
}
printf("%d\n",sum);
}
统计1—50的累加和
这段程序应该没问题吧,为什么总是不能编译呢?编译栏总是显示“Linking...”
而且程序也因此无法关闭,点击关闭就弹出对话框“You cannot close the workspace while a build is in progress.Select the Stop Build command before closing the workspace.”
是我的c语言程序有问题吗?还是其他什么问题,求高手详细解答!