Take a look at your loop:
for (int j = 0; j >=1; j++)
Your condition:
j>=1
This is the same as saying "loop while that j is greater than, or equal to 1. You start your counter j=0 which means j is zero (not greater than 1). It never executes the loop.
Reputation Points: 113
Solved Threads: 19
Postaholic
Offline 2,108 posts
since Jun 2004