题解 | KiKi定义电子日历类
KiKi定义电子日历类
https://www.nowcoder.com/practice/e4c67097cdb242d9a3f38b7cfe839396
#include <stdio.h>
// write your code here......
struct dates{
int year;
int mouth;
int day;
}date = {0, 0, 0};
void out_date(int a, int b, int c){
struct dates date = {a, b, c};
printf("%d/%d/%d", date.day, date.mouth, date.year);
}
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
out_date(a, b, c);
// write your code here......
return 0;
}
C/C++题解 文章被收录于专栏
记录个人编程题的解题思路以及学习的新知识