Publish your story - poem - jokes free online--click here

JAVA

small but dangerous c,c++ codes

//<-------------SIMPLE BUT DANGEROUS ------------>

#include <iostream.h>

using namespace std;   //if you are in turbo skip this line


//<---------------This will simply print hello-------------->

int main()
{
if(cout<<"hello")
return 0;
}


//<--------------But this will print hello infinite times------------------>

int main()
{
while(cout<<"hello")
{
}
}
return 0;
}


//Butttttttt this is quite dangerous it will make you poor to unplug the power of your computer ........

int main()
{
while(cout<<"\n\a")
{

}
return 0;
}

No comments:

Post a Comment