Jump to content

Post your desktop


Recommended Posts

  • 2 months later...
Shamelessly raising this thread from the dead.

 

Empty:

 

BCcSd.png

 

 

Less empty:

 

ZMA1j.jpg

 

 

Work in progress, not quite happy with it yet. Horribly missing the aero transparency that was in the W8 release preview, but apparently not in the final release. D:

 

WARNING: Very OCD coding remarks that you should probably ignore and never open this spoiler

 

 

 

The (i % 15) in your code is reundant and could be very expensive if it's part of a tight video game physics loop because it incurs a division operation.

Now this is reeeeeallly stretching on OCD, and if you were in a job application no one would care. But here's how you can avoid extra calculation and squeeze the most performance out of it:

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    for (int i = 1; i <= 100; i++)
    {
        bool fizzbuzz = false;
        
        if ((i % 3) == 0)
        {
            cout << "Fizz";
            fizzbuzz = true;
        }
        
        if ((i % 5) == 0)
        {
            cout << "Buzz";
            fizzbuzz = true;
        }
        
        if (!fizzbuzz)
        {
            cout << i;
        }
        
        cout << endl;
    }
    
    return 0;
}
Also it's really important to note that i should go from 1 to 100 inclusive instead of 0 to 99 which was in your original code.

 

 

spior and Bart like this
Link to comment
My computer crashed when I pressed the printscreen button. It may be a coincidence, but I doubt it.

 

As such, I've decided to punish my computer by humiliating it on the internet.

 

 

This is an adequate gif representation of my computer as a whole:

 

 

12753_o.gif

 

I used to know this feel.

You poor soul.

therfiles likes this
Link to comment
...Actually, it was working fine for me until you just fixed it. Now it's broken. xD

 

 

^Whatever you did I can't see it.

 

Web browser, firefox, home PC so images are not blocked of course.

 

 

@@minilogoguy18 Wasn't me, I swear. Blame the guy above me. Just took the liberty of fixing it, though.

 

...What seems to have happened was that image host seems to randomize part of images' URLs so images only work when you link to their page containing the image, rather than linking to the image directly, thus breaking any embeds after a while. We employ a similar technique with file downloads ourselves, just less obnoxiously.

 

I swear it was broken before I got here, I just failed to fix it.

Link to comment

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
×
×
  • Create New...