.comment-link {margin-left:.6em;}

<Summary> YATB, Yet Another Technology Blog </Summary>

Saturday, June 02, 2007

Job At IIIT-B


Phew!! Finally a blog post! Seems that I was running out of ideas or for that matter had gone brain dead itself.



So here is something that came up while I was chatting with one of my friends.





int get_A_Job_At_IIIT () throw(TooUnluckyException )
{


switch(current_Status ) {

enjoy_Maadi:
case ALREADY_PLACED:

get_Drunk();
get_Flat();
shift_House();
enjoy_Maddi();
break;


case COMPANY_FIRED:
case RESEARCH_STUDENT:

pray_God();
if ( apply_Off_Campus() == true )
goto enjoy_Maadi;
else {
if ( butter_Professors() == true )
goto enjoy_Maadi;

if ( sit_For_Placements() == true )
goto enjoy_Maadi;
else {

try {
push_Push_Button();
}

catch ( TooUnluckyException& toulex ) {
// Solution not yet known. Ask caller to handle
throw;
solution.
}
}
}
break;

}

return 0;

}










Please post your comments and bugs if any.

7 Comments:

Blogger Bhuwan said...

I would be very interested in seeing the implementation for push_Push_Button();

Also! get_A_Job_At_IIIT() returns 0. No matter what! ha ha

And, why compare a boolean with true inside if condition?
Won't this do in CPP:
if(apply_Off_Campus()) :D

NICE POST!

2:33 AM, June 03, 2007

 
Blogger Imanpreet said...



I would be very interested in seeing the implementation for push_Push_Button();



:). That would indeed be interesting. Maybe you have better idea :)





Also! get_A_Job_At_IIIT() returns 0. No matter what! ha ha



Except when it throws an exception. In which case the behavior is Undefined.



And, why compare a boolean with true inside if condition?
Won't this do in CPP:
if(apply_Off_Campus()) :D




Nah, I prefer to had true and false in condition tests.



NICE POST!


Thanks!

4:04 AM, June 03, 2007

 
Blogger Seema said...

enjoy_maadi() throws an error 'function not defined'!!
Typo!!

2:06 PM, June 03, 2007

 
Anonymous Anonymous said...

label: try("Cathy")
{
enjoy_Maadi();
}
catch(Exception C)
{
goto label;
}

2:00 PM, June 05, 2007

 
Anonymous Anonymous said...

I don't get it. I guess the people who sat for placements this time (with a few exceptions) are real unlucky...
so i guess this must be changed to:

sit_For_Placements() == false
enjoy_Maadi() //goto Google

8:23 PM, July 17, 2007

 
Blogger Imanpreet said...

@Anonymous:

Point noted, but I wrote it _before_ the Placements :)

7:33 AM, July 18, 2007

 
Anonymous Anonymous said...

Even if you wrote it __before__ placements, we all knew there were no worthwhile companies coming for placements...So your argument doesn't hold good either.

7:26 PM, July 18, 2007

 

Post a Comment

<< Home