added ws202425 courses
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//date.c
|
||||
|
||||
#include <stdio.h>
|
||||
#include "date.h"
|
||||
|
||||
struct date setInitDate(int year){
|
||||
struct date d;
|
||||
d.year = year;
|
||||
d.month = 1;
|
||||
d.day = 1;
|
||||
return d;
|
||||
}
|
||||
|
||||
void printDate(struct date * datum){
|
||||
printf("date: %d.%d.%d \n", datum->day, datum->month, datum->year);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user