I am using an if statement to do a set of commands when an INT (which in this case is a number of a month like 02) is equal to a STRING (which is a date fully written out like so --> 02/14/1998) the fully written out dates are in a file
So I am asking the user to type in a date and a month (INTS) and compare that to the fully written out dates in the file and when the month is the month of the fully written out date and same w/ the year do a set of calculations.
int userTypedMonth, userTypedYear
string fileDate
if(userTypedMonth == fileDate && userTypedYear == fileDate){
5+5=10
}
I know this is the wrong syntax of code but i wanted to show how Im trying to explain it.