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

In this thread, we Hello World

Name: Anonymous 2006-06-20 20:56

c:
#include <stdio.h>
main() { printf("hey worldz\n"); }

Name: Anonymous 2006-06-21 15:21

#include <iostream>
using namespace std;

class Hello
{
    string hello;
public:
    Hello(const string &world = "Hello, world!"): hello(world) { }
    friend ostream &operator<<(ostream &stream, const Hello &hello) {
        stream << hello.hello;
        return stream;
    }
};

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

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