主题:帮个忙
我在用VC 6.0时,有程序在编译时不报错提示栏出现 --------------------Configuration: case后的常量表达式只起标号的作用 - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
case后的常量表达式只起标号的作用.cpp
这样结果,无法关闭,又无法继续,这种事我经常出现,不知道为什么.每次都在关电脑时强行由电脑关闭,这样做我很苦恼,希望高手 教一教怎样才能关闭它 谢谢啦!!!
附:源程序为:#include <stdio.h>
#include <conio.h>
void main()
{et
char c;
c = getch ( );
switch ( c )
{
case 'Y' : printf ("Y\n");break;
case 'N' : printf ("N\n");
case 'A' : printf ("ALL\n");break;
default : printf ("yes,no,or all\n");
}
}
Compiling...
Skipping... (no relevant changes detected)
case后的常量表达式只起标号的作用.cpp
这样结果,无法关闭,又无法继续,这种事我经常出现,不知道为什么.每次都在关电脑时强行由电脑关闭,这样做我很苦恼,希望高手 教一教怎样才能关闭它 谢谢啦!!!
附:源程序为:#include <stdio.h>
#include <conio.h>
void main()
{et
char c;
c = getch ( );
switch ( c )
{
case 'Y' : printf ("Y\n");break;
case 'N' : printf ("N\n");
case 'A' : printf ("ALL\n");break;
default : printf ("yes,no,or all\n");
}
}