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;
}