Custom Titles...........
Jul 17, 2005 at 5:58 PM Post #76 of 84
Remember the rules guys/gals, if you're trying to get a title, you won't.
 
Jul 17, 2005 at 7:18 PM Post #77 of 84
Quote:

Originally Posted by akwok
Bad formatting!

if ((bitchingPosts != 0) && ((totalPosts / bitchingPosts < 5) || (moneyContributed >= 50)))
{ customTitle = true;
}
else
{ customTitle = false;
}



You know, I would care, but really; it was a joke. It wasn't even a complete program. However... assuming all variables were ints, as is default, yours would fail as an int can only contain integers, whereas you're passing it characters.
 
Jul 17, 2005 at 7:57 PM Post #78 of 84
Quote:

Originally Posted by akwok
Bad formatting!


Code:

Code:
[left]if ((bitchingPosts != 0) && ((totalPosts / bitchingPosts < 5) || (moneyContributed >= 50))) { customTitle = true; } else { customTitle = false; }[/left]




NOOO, NOOO!!!

No more java, lol. In my CS class we made: Minesweeper and attempted Chess (actually sorta worked) and yeah NO MORE!! although I have to take CS again in computer engineering which is EVIL, EEEEEVIL!!

Actually you could have done this instead:

Code:

Code:
[left]public UserStatus extends Member { boolean customTitle = false; private boolean customTitle(int bitchingPosts, int totalPosts) { if ((bitchingPosts != 0) && ((totalPosts / bitchingPosts < 5) || (moneyContributed >= 50))) { customTitle = true; return customTitle } else return customTitle; } }[/left]

Don't scream if that is bogus, I haven't programmed in a while, lol.

edit: I was...blaaaaaaahhh now I have returns inside the If statement, I tried to remove them but yours doesn't return anything so yeah...
 
Jul 17, 2005 at 7:58 PM Post #79 of 84
Quote:

Originally Posted by Stephonovich
You know, I would care, but really; it was a joke. It wasn't even a complete program. However... assuming all variables were ints, as is default, yours would fail as an int can only contain integers, whereas you're passing it characters.


True and false in some languages are strictly 1 and 0 integers. Just something that the compiler would do behind the scenes. If he casted them as chars or strings by putting them in quotes, then it would be a problem.
 
Jul 17, 2005 at 8:10 PM Post #81 of 84
Quote:

Originally Posted by Born2bwire
True and false in some languages are strictly 1 and 0 integers. Just something that the compiler would do behind the scenes. If he casted them as chars or strings by putting them in quotes, then it would be a problem.


I was assuming he was writing in C/C++, as I had. Wait... /me looks at original source... right then, it's a bit ambiguous. I was thinking in C++, ergo, I assumed everyone else would as well
biggrin.gif
 
Jul 17, 2005 at 8:12 PM Post #82 of 84
This thread is just ridiculous now!~
tongue.gif
 
Jul 17, 2005 at 8:21 PM Post #83 of 84
Quote:

Originally Posted by Jahn
This thread is just ridiculous now!~
tongue.gif



No, the amount of PPDs you have is rediculous!! I'm surprised you're not in severe pain or breakouts all the time...bathroom must be hell. Dude, just don't pass your PPDs along to your wife okay?
tongue.gif


Quote:

christ guys it was only a joke, i wasnt really criticisizing how he programs. Let it go.


Code:

Code:
[left]private int checkJokeStatus(boolean jokiNess) { if(jokiNess != true) { return 0; } else return 1; }[/left]

 

Users who are viewing this thread

Back
Top