我的任务是使用 printf 显示一个程序。我的解决方案是用引号遍历每一行。但是我在编译时卡住了它要我声明“d”
我在打印整个程序时遇到错误。它要我定义“d”请帮助我。
#include <stdio.h>
int main(void)
{
printf(
"/* This program reads two integers from the keyboard and prints their product."
"Written by: A Katheravan"
"Date : 10/02/2012"
"*/"
"#include <stdio.h>"
"int main (void)"
"{"
"//Local Definitions"
"int number1;"
"int number2;"
"int result;"
"//Statements"
"scanf("%d", &number1);"
"scanf ("%d", &number2);"
"result = number1 * number2;"
"printf("%d", result);"
"return 0;"
"}"
"//main");
return 0;
}