inside my function, i need these statements to work.
the function is.
void enter(struct date *pdate, char desc[ ])
Code:check = 0; while(check != 1) { printf("Enter the day: (between 1 and 31) "); scanf("%d", &pdate->day); if (&pdate->day <= 31 && &pdate->day >= 1) { break; } }
im getting the error.
ISO C++ forbids the comparison between pointers and intergers.
how would i fix this?