Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    292
  • comments
    557
  • views
    154549

Ack!

Sign in to follow this  
TANSTAAFL

109 views

And the following isn't real code (like in the last post), but it is UGLY.

	try
{
try
{
for(int a=-1;a<2;++a)
{
try
{
for(int b=-1;b<2;++b)
{
try
{
for(int c=-1;c<2;++c)
{
try
{
printf("%d %d %d\n",a,b,c);
throw int(a+b+c);
}
catch(int e)
{
if(e>0)
{
throw int(e-1);
}
else if(e<-1)
{
throw int(e+1);
}
}
}
}
catch(int e)
{
if(e>0)
{
throw int(e-1);
}
else if(e<-1)
{
throw int(e+1);
}
}
}
}
catch(int e)
{
if(e>0)
{
throw int(e-1);
}
else if(e<-1)
{
throw int(e+1);
}
}
}
}
catch(int e)
{
if(e>0)
{
throw int(e-1);
}
else if(e<-1)
{
throw int(e+1);
}
}
}
catch(...)
{
}

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!