求帮助
各位前辈,小的刚学C++,许多不懂,求解释#include<stdio.h>
#include<math.h>
void main()
{
int num1,num2,a,b,c,d,e;
printf("Enter num1:");
scanf("%d",&num1);
printf("Enter:num2");
scanf("%d",&num2);
a=num1+num2;
b=num1-num2;
c=num1*num2;
d=num1/num2;
e=num1%num2;
printf("%d+%d=%d",num1,num2,a\n);
printf("%d-%d=%d",num1,num2,b\n);
printf("%d*%d=%d",num1,num2,c\n);
printf("%d/%d=%d",num1,num2,d\n);
printf("%d%%d=%d",num1,num2,e\n);
}
显示错误为
error C2017: illegal escape sequence
为什么呢?求大虾们解释下。