That is just pointer notation, as in alphabet is a pointer to a null terminated string of characters. Perhaps more C++ish would be:
Code:char convert(int number) { const std::string alphabet("abcdefghijklmnopqrstuvwxyz"); return alphabet[number % alphabet.length()]; }