surely because we are ignoring it
Announcement
Collapse
No announcement yet.
Please ignore this post
Collapse
X
-
Actually, its not an attachment, just a link to an image.
But I guess you ignored that.Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
Comment
-
Comment
-
Originally posted by Belwarrior
The question is, which of the above would increase the variable faster than the rest and why?
++postcount; is a pre-increment, does it mean the number of posts gets altered before it is posted ?
postcount++; is a post-increment, for objects, the ++ can be overloaded a different function (hmm, +2 ? +3 ?)
postcount=postcount+1;
postcount+=1;
The latter is only a shorthand for the former...
Of course, we could do:
++postcount;++
(but it would be cheating)
Jörg
Comment
-
What all of us want:
public class MURCPostDatabase
{
private int myPostCount = 0;
public static void (String [] args)
{
submitReply ();
}
public void submitReply ()
{
for ( ; ; )
{
myPostCount ++
}
}
}
Unfortunately, you will get an error eventually... cannot hold number of post once reacher max value of integer...
SO STOP DREAMING GUYS!
Comment
-
-
Comment