Oh another thing, you said I can declare my struct there as well.. so would I be able to do this?
Code:
struct month const char monthchars[12][] = { "january", february, march, april, may, june, july, august, september, october, november, december } // of course each one has the "" around them.
//then the for loop
int i=0,x;
for(i=0;i<12;i++)
{
if(!strcmp(month.monthEng, monthchars[i])
return i;
}
else
printf("Type in lower case please...");
return -1 //i had a question here, why return -1? what does that mean?