need help with an ascii table =\
How's it going everyone? I got a project due in a few days and I was trying to work this but i can't figure out why its doing what it is. What i have to do i display the integer and its character values. this what i have in the driver:
{
while (RW<50)
{
cout << endl <<"Row:"<< RW;
RW ++;
while (CL<5)
{
cout << (char)AlphNum << "\t";
AlphNum ++;
CL ++;
}
CL=0;
}
}
but this is how it displays:
Row:0 ☺ ☻ ♥ ♦
Row:1♣ ♠
Row:2
♫ ♀
Row:3☼ ► ◄ ↕ ‼
Row:4¶ § ▬ ↨ ↑
Row:5↓ → ← ∟ ↔
the first if how its suppose to look then it goes downhill from there. row 1 and 2 are really messed up and the gap between the integer and the first char value in row 3, 4, & 5 are gone. i only showed you the first 6 but it looks like rows 3,4,&5 throughout the whole thing.
any help guys?