The character 'b' is char('a'+1, 'c' is char('a'+2), etc. Use a loop to write out a table of characters with their corresponding integer values:
a 97
b 98
...
z 122
I tried some, but nothing work. It just repeat b and c all the way 100 time. I don't think I learned how to make abc in loop unless I have to write out all myself, like a = 1, b = 2. Did i miss something in the book? I reread, no luck...
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "std_lib_facilities.h"
int main()
{
int i = 0;
char b = 'a'+1;
char c = 'a'+2;
while (i<100) {
cout << b << '\t' << c << '\n';
++i;
}
}