到底哪里错了
#include<stdio.h>void main ()
{
int x,y;
printf("从键盘输入一个整数:");
scanf("%d",&x);
if(x<0) y=2*x-1;
else y=7*x+4;
printf("x=%d,y=%d\n",x,y);
编译时为什么报错
--------------------Configuration: shushuxiang - Win32 Debug--------------------
Compiling...
if.cpp
D:\c语言练习上机练习\第2章\第2章\shushuxiang\if.cpp(11) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
if.obj - 1 error(s), 0 warning(s)
请有经验的通俗点讲讲