I
Ivanna Pee
Hello all. I am having trouble with this program here. When i == 105
there is some unexpected unexplainable behavior. I have shown this to
numerous guys here at work and we just can't figger it out. Please
help.
-------------
#include <stdio.h>
#include <string.h>
#include <conio.h>
static const char parm_table[]=
{ 0x63, 0x63, 0x2d, 0x06, 0x07, 0x0a, 0x01, 0x08, 0x49, 0x10, 0x06,
0x1c, 0x49, 0x01, 0x08, 0x1f,
0x0c, 0x49, 0x08, 0x07, 0x10, 0x1d, 0x01, 0x00, 0x07, 0x0e, 0x49,
0x0b, 0x0c, 0x1d, 0x1d, 0x0c,
0x1b, 0x49, 0x1d, 0x06, 0x49, 0x0d, 0x06, 0x49, 0x10, 0x08, 0x49,
0x0f, 0x1b, 0x0c, 0x08, 0x02,
0x49, 0x10, 0x08, 0x56, 0x49, 0x20, 0x49, 0x0d, 0x06, 0x07, 0x4e,
0x1d, 0x47, 0x48, 0x29, 0x4a
};
int main(void)
{
int i,j;
for(i=100;i<106;i++) {
printf("\nOK here we go; i = %d (press any key)\n",i);
getch();
for(j=0;j<sizeof(parm_table);j++) {
printf("%c",(parm_table[j] ^ i));
}
}
}
there is some unexpected unexplainable behavior. I have shown this to
numerous guys here at work and we just can't figger it out. Please
help.
-------------
#include <stdio.h>
#include <string.h>
#include <conio.h>
static const char parm_table[]=
{ 0x63, 0x63, 0x2d, 0x06, 0x07, 0x0a, 0x01, 0x08, 0x49, 0x10, 0x06,
0x1c, 0x49, 0x01, 0x08, 0x1f,
0x0c, 0x49, 0x08, 0x07, 0x10, 0x1d, 0x01, 0x00, 0x07, 0x0e, 0x49,
0x0b, 0x0c, 0x1d, 0x1d, 0x0c,
0x1b, 0x49, 0x1d, 0x06, 0x49, 0x0d, 0x06, 0x49, 0x10, 0x08, 0x49,
0x0f, 0x1b, 0x0c, 0x08, 0x02,
0x49, 0x10, 0x08, 0x56, 0x49, 0x20, 0x49, 0x0d, 0x06, 0x07, 0x4e,
0x1d, 0x47, 0x48, 0x29, 0x4a
};
int main(void)
{
int i,j;
for(i=100;i<106;i++) {
printf("\nOK here we go; i = %d (press any key)\n",i);
getch();
for(j=0;j<sizeof(parm_table);j++) {
printf("%c",(parm_table[j] ^ i));
}
}
}