Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #37.0K
~3K People Reached
Favorite Forums
Favorite Tags

5 Posted Topics

Member Avatar for orangejuice2005

One method to solve a maze is to consider the walls more as a door that is open (available) or closed (already tried). Boundaries are marks closed as are the solid walls. the sequence would be: 1) Enter cell 2) If this cell contains cheese, stop -- maze solved 3) …

Member Avatar for Lerner
0
1K
Member Avatar for curt1203

Take a close look at line 22. Modulo returns a number from 0...N-1. So modulo 99 + 1 returns a value from 1 to 99 not 100. Also, look at lines 68, 74, 79. Shouldn't this be one line outside the if()s?

Member Avatar for curt1203
0
307
Member Avatar for micah1983

You also need to consider the following: 1) The results might not be integers 2) The initial equation uses discount and I think you're looking for 100% - discount 3) Discount should probably be in the range 0.0 - 1.0 or you need to divide by 100 to correct the …

Member Avatar for carnage
0
608
Member Avatar for Jboy05

Consider the following: [code=C++] inline char IsPositive(double r) { return ( (r < 0.0) ? 'N' : 'P'); } [/code]

Member Avatar for kjc367
0
131
Member Avatar for Member #282120

Consider that the difference between filled and unfilled is whether the fill character is a space of the same as the edge. Just write a unfilled routine and either chFill is a space or chEdge.

Member Avatar for kjc367
0
219

The End.