Output Uppercase Letters

Hey guys, I need to make a program that outputs all uppercase letters. I think the letters can come from anything. Help please
Um.

std::cout << "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

Or did you maybe want something like...

1
2
3
const char* lets = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 26; ++i)
    std::cout << std::toupper(lets[i]);


-Albatross
Last edited on
ha..yea, i think the second one is what i need. thanks
Topic archived. No new replies allowed.