Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

eerui

Name: Anonymous 2010-09-16 22:38

ITT:
We write different ways to produce 'hello world' in the shell
language : c++
no syntax errors, and no copying others work. I'll start with something simple

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

Name: Anonymous 2010-09-18 6:11

I call on the power of infinate monkeys to help me with this

#include <iostream>

using namespace std;

int main()
{
    char str[12];
    while(1)
    {
        for(int i = 0; i < 11; i++)
        {
            str[i] = rand() % 255;
        }
        string yeahimlazydontshootme = str;
        if(yeahimlazydontshootme == "Hello world")
        {
            cout << str;
        }
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List