Name: Anonymous 2013-01-31 15:36
Write a program that displays "Hello world" (without quotes) to the screen.
#include <stdio.h>
int main(int argc, char ** argv)
{
printf("Hello" " " "world");
return 0;
}
#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;
}