Re: Counting...


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by MtBiker on August 01, 1999 at 17:50:54:

In Reply to: Counting... posted by Sleepless Snowman on July 31, 1999 at 21:56:34:

OK, I think I know your problem.

Most likely, you did what I did. You took the book's code and converted the inner for loop to a while loop. The bit about the keys is your comparison. Every time you compare, increment the counter. If you compare ok, swap

Now, if you compare and it doesn't pass the test, do and "else break". This will break you out of the while loop.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]