回复 2楼 吹水佬
实际代码是这样的:
#include<stdio.h>
int main(void)
{
printf("#include <stdio.h>\n");
printf("int main()\n");
printf("{\n");
printf("
int a,b;\n");
printf("
while(scanf("%d%d",&a,&b) != EOF)");
//8
printf("
printf("%d\n",a+b);\n");
//9
printf("
return 0;\n");
printf("}");
return 0;
}
//8 error: 'd' undeclared (first use this function)
//8 error: expected')' before srring constant
//8 errpr: stray '\' in program
//9 error: expecred ')' before 'n'