计算机vc++

来源:百度知道 编辑:UC知道 时间:2024/05/23 18:54:48
请问为什麽这个程序不能运行?
#include "stdafx.h"
#include <stdio.h>
main()
{char c;
c=getchar();
printf("%c %c %c\n",c-1,c,c+1);

return 0;

如果你用的是VC++的话,按alt+F7,选C/C++选项卡,在分类中选“预编译的头文件”,然后在下面选“不使用预补偿页眉”。最后删去#include "stdafx.h" 这句。编译、运行一切ok