Hello once again,
So here is the part of my code I am having a problem with:
So what I essentially get is :Code:if (daynight=="AM" && hour == 12 && minute ==00) { strcpy(daynight, "PM"); } if (daynight=="PM" && hour ==12 && minute ==00) { strcpy(daynight, "AM"); }
11:58PM
11:59PM
12:00PM
12:01PM
when the latter two should be AM.
Can someone please help me with this? Thank you so much