mercredi 1 avril 2015

greater than functions in c++ not working?

Ok, so heres my code:



if (location[1] < 0) {
printf("Your off the map!")
}


My problem is that when location[1] is less than 0 the code inside the if will not run. Am i doing something wrong? Everything `I can find online is telling me I'm right.


Aucun commentaire:

Enregistrer un commentaire