#hackC++ wrote:
(I don't understand arrays)
Then I would suggest familiarizing yourself with them. See here.
#hackC++ wrote:
What I'm trying to do is that when I type the number that corresponds to it's place in the alphabit...for example if I input 6, 4, 11, 11, 14 the program will output "hello".
That should be 7, 4, 11, 11, and 14.
#hackC++ wrote:
Just wondering if this is the ideal way of doing this. (by ideal I mean using an array).
Not really. I would opt for something like:
int number;
std::cin >> number;
std::cout << (char) number << std::endl;
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb