i am looking for code that can generate an array where the first item is A, then B, then C . . .after Z it would then go to AA, then AB then AC . . . all the way up to ZZ.
what is the best way of doing this in C#?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One of the ways is:
Edit:
you can actually produce “infinite” sequence (bounded by maximal
longvalue) with somewhat more complicated code:This one goes like that: A, B, …, Z, AA, AB, …, ZZ, AAA, AAB, … etc: