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

/prog/ challenge [extreme edition]

Name: Anonymous 2013-01-31 15:36

Write a program that displays "Hello world" (without quotes) to the screen.

Name: Anonymous 2013-01-31 18:08

#include <stdio.h>
int main(int argc, char ** argv)
{
     printf("Hello" " " "world");
     return 0;
}

Name: Anonymous 2013-01-31 18:35

#include <windows.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
class PrintClass
{
public:
    PrintClass();
    ~PrintClass();
    char * strPrint;
}

PrintClass::~PrintClass()
{
    ; // so it does nothing. Thanks Tim!
}
// string must never be longer than 2^32!
PrintClass::PrintClass(char * argument)
{
    strPrint = (char *)malloc(4294967296 * sizeof(char*) + 1); //large enough for any usage :)
//now to store the string for printing
    strPrint = &argument; // points at to argument
    cout << strPrint; // print
}

int main()
{
    PrintClass * d = new PrintClass("Hello World!");
    return 0;
}

Name: Anonymous 2013-01-31 18:38

>>10-12
Both of you pitiful fools have used quotes. And here, you forgot this: /n

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