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
~934 People Reached
Favorite Forums

3 Posted Topics

Member Avatar for Coding Mage

Hi all, I have an interesting problem for which I already have a solution, but I have a feeling my solution is less than elegant. I need to create a Factory class which returns an instance of some child of class Foo. Which child is instantiated depends on the value …

Member Avatar for Dave Sinkula
0
624
Member Avatar for Alfarata

It seems you may want to set temprec equal to 2000 before the loop and use w as your array index inside the fprintf statement. Best of luck, Mage

Member Avatar for Alfarata
0
131
Member Avatar for evilsilver

Let's first address this code snippet:[CODE] if (attackedxtimes == (3 || 6)) { attack (me, c); }[/CODE] "3 || 6" evaluates to "true", which is usually represented by 1. This effectively turns the statement into [CODE]if (attackedxtimes == 1)[/CODE] Also, there's a line of code in battle [CODE]c.hp && me.hp …

Member Avatar for Coding Mage
0
179

The End.