VS2015 c语言 错误1:_main已经在 文件夹名.obj 中定义 错误2:一个或多个多重定义的符号
#include<stdio.h>intmain(){inthour1,min1;inthour2,min2;printf("pleasemakesurethatthet...
#include<stdio.h>
int main()
{
int hour1, min1;
int hour2, min2;
printf("please make sure that the time you put in first is shorter");
scanf_s("%d %d", &hour1, &min1);
scanf_s("%d %d", &hour2, &min2);
int t1 = hour1 * 60 + min1;
int t2 = hour2 * 60 + min2;
int t = t2 - t1;
printf("the minus is %d hours %d min", t / 60, t % 60);
getchar();
return 0;
} 展开
int main()
{
int hour1, min1;
int hour2, min2;
printf("please make sure that the time you put in first is shorter");
scanf_s("%d %d", &hour1, &min1);
scanf_s("%d %d", &hour2, &min2);
int t1 = hour1 * 60 + min1;
int t2 = hour2 * 60 + min2;
int t = t2 - t1;
printf("the minus is %d hours %d min", t / 60, t % 60);
getchar();
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询