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 7:21


#include <stdio.h>
int main() {
    int i,c=0150;
    for(i=0;i<12;i++) {
        switch(i) {
            case 2: c += 4;
            case 4:
            case 8: c += 3;
            case 0:
            case 3: break;
            case 5: c &= 176; break;
            case 6: c |= 87;  break;
            case 7:
            case 10:c -= 2;
            case 9: c -= 3;
            case 1: c -= 3; break;
            case 11: c ^= 'n'; break;
        }
        putchar(c);
    }
}

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