Konuyu görüntüle
IUCODERS FORUM > Genel > Geyik > Windows Vista Code
Yazar
onur


avatar
Two Story Town
Kayıt: 14.01.2006
14.12.2006-09:38 #12563


/**
* (c) 2007 Microfost Corp.
* All rights reserved
*/
#include

class WindowsVista extends WindowsXP implements Nothing
{

boolean beta = true;

WindowsVista( )
{
checkIfHardwareIsCompatible( );
/** Ok. The idiot seems to have some high end hardware.
* Lets make his life miserable
*/
runInternetExplorer7();
}//constructor

void checkIfHardwareIsCompatible( )
{
/*
* Lets make sure that half the world cannot run this OS while
* we fix all the bugs
*/

if((installedRam < 2GB) && (processorSpeed < 4GHz))
{
MessageBox(” Your System does not seem to be capable of running zero err..
aero glass and the like. Please upgrade the hardware and try again.”);
WaitTillPoorGuyReadsTheMessage( );
bsod(); // Blue Screen of Death http://en.wikipedia.org/wiki/Blue_Screen_of_Death
}//if
}//void

void runInternetExplorer 7()
{
IE7 ie7 = new IE7();
ie7.featureSet = firefox_features
+ safari_features
+ opera_features + lot_of_bugs;
ie7.run();
WaitWhileThePoorGuy LooksAtTheNewInt erface();
bsod();
}//void

/**
* return true when product is stable.
*/

boolean isReadyForRelease( )
{
int lastReportedNumberO fBugs = 3457888E+08
int totalNoOfNewFeature s = 600;
boolean readyForRelease = false;
sendFeatureSetToMar ketingGuys( );

while (marketingGuysAreAt It)
{
Thread fixBugsWhileInBeta = new fixBugsWhileInBeta( );
fixBugsWhileInBeta.assignProgrammer (oneBug);
fixBugsWhileInBeta.start();
if(programmersAreNotSufficient)
{
hireFromXBOXDivision();
}

if(aMonthHasPassed)
{
announce(”Windows Vista Consumer Version Will be delayed by one more
month”);
dropAFewFeatures( );
totalNoOfNewFeatures = totalNoOfNewFeatures - 10;
}
/** Boss strictly told me that we should have no more than * 7000 bugs
* when we ship the item
*/

if(lastReportedNumberOfBugs- - == 7000)
return true;
}
}//boolean

int main(void)
{
WindowsVista vista = new WindowsVista( );
vista.runWindowsXP( );
return plentyOfMoneyforBilly;
}//main
}//end of code








Yazar
ali


avatar
istanbul
admin
Kayıt: 04.01.2006
18.12.2006-00:16 #12673
vistanın özeti olmuş , güzel birçalışma. ama sanırım biraz optimizasyon gerekli

return plentyOfMoneyforBilly;

plentyOfMoneyforBilly int tipinde. bu kadar para inte sığmaz. biz onu long long yada big int yapalım peace





free software is a matter of liberty, not price. to understand the concept, you should think of free speech, not free beer.
Del.icio.us
Digg
Facebook
Furl
Google
Blink
Simpy
Spurl
Y! MyWeb