/*
trek done in a hill near vaniyambadi in NH46 (chennai-bangalore highway)
distance from Ambur around 14KM, should take a left some where before reaching vaniyambadi
Implemented by : Me (Muzammil)
*/
class Trekkers; /*class here refers to category*/
Trekkers Me, Mujju; /*Me refers to Myself, Mujju nickname for mujahid my trek partner*/
Trekkers MainProgram()
{
InitializeTrekProgram();
StartTrekkkingOperation();
FindCheckPoint();
StartClimbing();
CheckIfOperationClimbSuccesful();
if(OperationStatus = Fail)
return Zero;
if(OperationStatus = Success)
return (Me & Mujju);
}
/*No no people, don't leave yet, this is not a technical blog, its just a crazy way of depicting a trek that's all!,
Technical help for ppl who don't know what a C++ program is
Me.SomeAction() refers to some action performed by me during the trek, same for Mujju.SomeAction */
InitializeTrekProgram()
{
Me.WakeUpInMorning();
Mujju.CameHome();
Me.DrinkTea();/*ofcourse Me brush teeth*/
Mujju.DrinkTea();
Me.CheckTimeIts(6AM);
Me.Drive_TVSMoped_Towards_Vaniyambadi_AlongWith(Mujju);
}
StartTrekkkingOperation()
{
Me.Take_LeftTurn_At_NarrowLane_4KMBeforeVaniyambadi();
Me.StopAtSuitableLocation();
/*Me Worry some one will steal the precious TVS moped*/
Me.SaysThis();
Mujju.Says_NoOneStealsThisJunkTVSMoped_LetsStart();
/*Me start walking after some prayer to God, Rs.1 in charity if TVS safe on return*/
}
FindCheckPoint()
{
Me.LookAtHill();
WalkTowardsHill(Me, Mujju);
Me.Says_DecideNearByCheckPoint_ForProperReturn();
Mujju.Says_That_BanyanTree_LooksProperPointForReturn();
/*Banyan Tree very old one, a proper symbol for indian village*/
WalkTowardsHill(Me,Mujju);
//Operation needed some venturing to find hill base
}
//Trekkers Climb operation
Trekkers::Climb(Direction)
{
while(NumberOfSteps < /*less than*/ Required_NumberOfSteps)
{
if(Direction = UP)
{
TakeAStepUpTheHill();
}
else if(Direction = DOWN)
{
TakeAStepDownTheHill();
}
}
}
StartClimbing()
{
Me.Climb(UP);
Mujju.Climb(UP);
TakeRestMidway_TakeSomeSnaps(Me, Mujju);
}
CheckIfOperationClimbSuccesful()
{
ReachTheTop(Me, Mujju);
TakeSomeSnaps(Me, Mujju);
Me.SeeAnotherPeak_AfterADownHill_Says(OperationStatus = Fail);
Mujju.Says_I_NeedToReturnEarly_ThisPeakIsGoodEnough_Says(OperationStatus = Success);
// heck Mujju wants to return, not Zero, pls chk MainProgram()
Me.Climb(DOWN)
Mujju.Climb(DOWN);
Mujju.SwingsInBanyanTree_Says_TakeSnapToMakeTrekMemorable();
//oops phone Memory overflow, output snap not saved, hard luck pal!
}
//if you have come till this point, then congrats you are truly a OOPs programmer
trek done in a hill near vaniyambadi in NH46 (chennai-bangalore highway)
distance from Ambur around 14KM, should take a left some where before reaching vaniyambadi
Implemented by : Me (Muzammil)
*/
class Trekkers; /*class here refers to category*/
Trekkers Me, Mujju; /*Me refers to Myself, Mujju nickname for mujahid my trek partner*/
Trekkers MainProgram()
{
InitializeTrekProgram();
StartTrekkkingOperation();
FindCheckPoint();
StartClimbing();
CheckIfOperationClimbSuccesful();
if(OperationStatus = Fail)
return Zero;
if(OperationStatus = Success)
return (Me & Mujju);
}
/*No no people, don't leave yet, this is not a technical blog, its just a crazy way of depicting a trek that's all!,
Technical help for ppl who don't know what a C++ program is
Me.SomeAction() refers to some action performed by me during the trek, same for Mujju.SomeAction */
InitializeTrekProgram()
{
Me.WakeUpInMorning();
Mujju.CameHome();
Me.DrinkTea();/*ofcourse Me brush teeth*/
Mujju.DrinkTea();
Me.CheckTimeIts(6AM);
Me.Drive_TVSMoped_Towards_Vaniyambadi_AlongWith(Mujju);
}
StartTrekkkingOperation()
{
Me.Take_LeftTurn_At_NarrowLane_4KMBeforeVaniyambadi();
Me.StopAtSuitableLocation();
/*Me Worry some one will steal the precious TVS moped*/
Me.SaysThis();
Mujju.Says_NoOneStealsThisJunkTVSMoped_LetsStart();
/*Me start walking after some prayer to God, Rs.1 in charity if TVS safe on return*/
}
FindCheckPoint()
{
Me.LookAtHill();
Output: LookAtHill //hill we climbed |
WalkTowardsHill(Me, Mujju);
Me.Says_DecideNearByCheckPoint_ForProperReturn();
Mujju.Says_That_BanyanTree_LooksProperPointForReturn();
/*Banyan Tree very old one, a proper symbol for indian village*/
BanyanTree //perfect check point for start and return |
WalkTowardsHill(Me,Mujju);
//Operation needed some venturing to find hill base
}
//Trekkers Climb operation
Trekkers::Climb(Direction)
{
while(NumberOfSteps < /*less than*/ Required_NumberOfSteps)
{
if(Direction = UP)
{
TakeAStepUpTheHill();
}
else if(Direction = DOWN)
{
TakeAStepDownTheHill();
}
}
}
StartClimbing()
{
Me.Climb(UP);
Mujju.Climb(UP);
TakeRestMidway_TakeSomeSnaps(Me, Mujju);
Midway scene: Children playing at base of hill |
Some snaps//Me Midway |
CheckIfOperationClimbSuccesful()
{
ReachTheTop(Me, Mujju);
TakeSomeSnaps(Me, Mujju);
Mujju //on top |
Me //on top |
Me.SeeAnotherPeak_AfterADownHill_Says(OperationStatus = Fail);
Another peak? //operation failed? |
Mujju.Says_I_NeedToReturnEarly_ThisPeakIsGoodEnough_Says(OperationStatus = Success);
// heck Mujju wants to return, not Zero, pls chk MainProgram()
Me.Climb(DOWN)
Mujju.Climb(DOWN);
Mujju.SwingsInBanyanTree_Says_TakeSnapToMakeTrekMemorable();
//oops phone Memory overflow, output snap not saved, hard luck pal!
}
//if you have come till this point, then congrats you are truly a OOPs programmer
Aaargh! seems I'm working too much to write this, but hope my trek partner is atleast happy to see his name so many times in the program
ReplyDeleteMuzzu.. You have made my day.. This is simply awesome. Hope this didn't give any compile errors..
ReplyDelete