In this code I'm filling the vector alpha with letters from 'a' to 'z':
alpha
'a'
'z'
std::vector<char> alpha(26); std::iota(alpha.begin(), alpha.end(), 'a');
I'm assuming this will not work with all character encodings, can anyone confirm? Or deny?
Aucun commentaire:
Enregistrer un commentaire