菜鸟尴尬帖。求达人解释。
/* Program 1.7 A longer program */#include <stdio.h> /*Include the header file for input and output*/
int main(void)
{
printf("Hi there!\n\n\nThis program is a bit");
printf(" longer than the others.");
printf("\nBut really it's only more text.\n\n\n\a\a");
printf("Hey, wait a minute!! What was that???\n\n);
printf("\t1.\tA bird?\n");
printf("\t2.\tA plane?\n");
printf("\t3.\tA control character? \n");
printf("\n\t\t\b\bAnd how will this look when it prints out? \n\n");
return 0;
}
这组代码。
编译的时候出现的错误为
c:\documents and settings\administrator\桌面\自学7.c(10) : error C2001: newline in constant
c:\documents and settings\administrator\桌面\自学7.c(11) : error C2146: syntax error : missing ')' before identifier 'printf'
执行 cl.exe 时出错.
换行符不断 还有缺少)
我检查了没有问题啊 请问我是哪里出错了?