samedi 25 avril 2015

how do you change arrays?


help! im trying to replace 'a' and 'e' with ' ' in my array but it keeps replacing all of the array instead.

    for(int x = 0; x < array_length); x++)
    { if(city_name[x] == 'a' || 'e')
      city_name[x] = " ";}


Aucun commentaire:

Enregistrer un commentaire