Windows 10 这个程序中的错误是什么?

Windows 10 这个程序中的错误是什么?,windows-10,Windows 10,代码: 两个printf命令: 9 2 C:\Users\Yash\Documents\c.3.cpp [Error] stray '\' in program 13 2 C:\Users\Yash\Documents\c.3.cpp [Error] stray '\' in program C:\Users\Yash\Documents\c.3.cpp In function 'int main()': 9 17 C:\Users\Yash

代码:

两个printf命令:

9    2    C:\Users\Yash\Documents\c.3.cpp    [Error] stray '\' in program
13    2    C:\Users\Yash\Documents\c.3.cpp    [Error] stray '\' in program
C:\Users\Yash\Documents\c.3.cpp    In function 'int main()':
9    17    C:\Users\Yash\Documents\c.3.cpp    [Error] 'n' was not declared in this scope
13    17    C:\Users\Yash\Documents\c.3.cpp    [Error] expected ')' before 'n'

换行符周围缺少引号,其中包含逗号。它们应该是这样的:

printf("%d",c \n);

您的错误消息非常清楚。检查打印文件。此问题与帮助中心定义的范围内的计算机硬件或软件无关。不应打印文件%d,c,\n;而是打印%d\n,c;?当然,整个问题超出了超级用户的范围。
printf("%d",c,\n);
printf("%d",c \n);
printf("%d \n",c);