I'm trying to add random numbers into a float array, but the result is only 0z. Can anyone explain why is it so?
const int size = 100; float aa[size]; for (int i = 0; i < size; i++) aa[i] = (float)rand();
Aucun commentaire:
Enregistrer un commentaire