Jump to content
Gheara

Random Thoughts

Recommended Posts

int antonio = 20;

int pikaciu = 2;

if(antonio > pikaciu){

 

pikaciu.startDancing();

antonio.startFart();

}else 

         System.out.println("The System is too phucked up to do this , please throw it up the window and buy another one!");

"Else" is pointless if you don't change the variables.

 

I like turtles!

Share this post


Link to post
Share on other sites

"Else" is pointless if you don't change the variables.

 

I like turtles!

*another programmer suddenly appears*

Not really. It basically means that if the first condition is not granted, it will show you that message on the screen. So your turtles are pointless!

Share this post


Link to post
Share on other sites

*another programmer suddenly appears*

Not really. It basically means that if the first condition is not granted, it will show you that message on the screen. So your turtles are pointless!

But he doesn't change the variable,the else is useles because (antonio > pikaciu) or (20>2), the condition will always be true; there is no else unless he changes the variables before if.

Share this post


Link to post
Share on other sites

But he doesn't change the variable,the else is useles because (antonio > pikaciu) or (20>2), the condition will always be true; there is no else unless he changes the variables before if.

Well, if it's that way, why don't you say that the whole decisive structure is pointless? He could've just run the line in the first "if" case after the definition of the variables.

Ok, so, maybe we're both right.

He should've made a keyboard readuing sequence like:

 

int antonio, pikachu;

scanf("%d%d",&antonio,&pikachu);//or cin<<anotnio<<pikachu; or, whatever

Share this post


Link to post
Share on other sites

One of the saddest days I've ever lived. The character played by him, was borned in the year I was borned. 14 years of happiness, now are gone. Maybe I should die right now. The last photo took with Ian McKellen as Gandalf, the greatest wizard from all times! RESPECT!

 

Posted Image
 
 
Left: Peter Jackson (Producer, Director, Writer) ; Right: IAN MCKELLEN (Actor, Soundtrack, Writer)
 
And, yes, I've gave myself a reputation point. He deserves every appreciation I could give him.

Share this post


Link to post
Share on other sites

int antonio = 20;int pikaciu = 2;if(antonio > pikaciu){pikaciu.startDancing();antonio.startFart();}else System.out.println("The System is too phucked up to do this , please throw it up the window and buy another one!");

LOL i laughed so hard at this :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×