Jump to content
  • entries
    356
  • comments
    1,045
  • views
    186,840

Wanna know how to start a fight between programmers?


Scanty Demon

1,119 views

if(truth == true){
   //look no wasted line
  System.out.println("Look at the bracket");
}

This is how.

  • Upvote 6

6 Comments


Recommended Comments

#ifdef _TRUE
printf("Yes, it works!");
#else
// Wait a minute
// oh dear god what am I doing
// preprocessor conditionals? No brackets?
// this is C, isn't it? I'm in straight C?
// no
// oh god no I've probably already broken a pointer somewhere
// wait where are the includes WHERE ARE THE INCLUDES
// am I the include? Is this a header file?
// DID I DEFINE MAIN? WHERE'S MAIN
exit(0); // SUCCESS? IS EXIT EVEN DEFINED!?!??
#endif // help me
  • Upvote 5
Link to comment

SD, that code is improperly formatted. :P

 

if(truth == true)
{
System.out.println("Look at the bracket");
}

 

Also, truth is undefined, which would give you a compile error. 

 

You would need: 

 

if(boolean truth == true)
{
System.out.println("Look at the bracket");
}

 

For it to function properly. 

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...