I am writing a program that read two dates(type STRUCT) from the user and compares them using a function which be called in main{}
struct datum1 {
short tag;
short monat;
int jahr; }datum1;
struct datum2 {
short tag;
short monat;
int jahr; }datum2;
void datumvergleich (struct datum1,struct datum2);
int main(){
printf("Geben Sie den Ersten Datum im Tag Monat und Jahr");
scanf("%hd\n",& datum1.tag);
scanf("%hd\n",& datum1.monat);
scanf("%d\n",& datum1.jahr);
datumvergleich (datum1,datum2);
}
/* void datumvergleich (struct d1, struct d2 )*/{
int t,m,j;
j=d1.jahr-d2.jahr;
m=d1.monat-d2.monat;
t=d1.tag-d2.tag;``` ...
i keep getting "error duplicate identifier:" at the line where there is the comment bracket " /* */ "
just FYI tag/monat/jahr mean day/month/year in german.
thanks in advance