Re: Need quick help, stuck on project.
Hi, i was looking at your loop and found that the loops are just doing the same thing, both of them. like, the what the first loop does, the second loop gives the value of first as well as what the loop should have done, which in this case is same as the first one, and this keeps repeating since j <=3, repeats 3 times.
"cout<<left<<setfill('#)<<setw(3);"
is a bad logic, as it is only gonna print 3 and ##, makes no sense.
you should try putting an if statement checking if i==j, cout 3, and then the else #, i think that should do it, and you must fix the loop too. I know this wasnt able to write it for you, but if you give me the whole program i can debug it for you.
|