Hello. I'm new to C++ and need some help. I need to make a program that basically would output this:
a
b
c
...
aaa
aab
aac
...
aaz
aa0
aa1
...
aa9
aa!
aa@
etc.
I've tried several differnet ways to the point where i've butchered my code into something horrible. heres a snippet:
Are you familiar with the ASCII coding of characters? Take a look at the ASCII table and it should be clear that letters are represented as numbers, and that there's a sequence to this representation that makes it very convenient to do the sort of output that you're ask about.
Yes I'm familiar with those which is basically what I was trying to do...Not a very good job though. the variable TheWord is not suggesting that im creating words. For some reason when I increment from certain letters the code just outputs something weird for no reason. I jokingly call it "the matrix" because of its random output on the console.
I agree with kbw .. you will need three loop which will display the char , corresponding the ascii decimal . hope you will get the loop right ( 0 - 127)