Hello World.
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
:thumbsup:
m.bergman
For Bruce Schneier, quanta only have one state : afraid.
To succeed in the world it is not enough to be stupid, you must also be well-mannered. -- Voltaire
In most cases the only difference between disappointment and depression is your level of commitment. -- Marc Maron
I am not a chatbot
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
geekbond wrote:
#include
CP Professional : same as seasoned professional, but gets the < > displayed properly.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb
-
:thumbsup:
m.bergman
For Bruce Schneier, quanta only have one state : afraid.
To succeed in the world it is not enough to be stupid, you must also be well-mannered. -- Voltaire
In most cases the only difference between disappointment and depression is your level of commitment. -- Marc Maron
I am not a chatbot
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
I see the jr. high and the new manager are at the same level in the beginning. :laugh:
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
-
I see the jr. high and the new manager are at the same level in the beginning. :laugh:
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
A manager using a command line mail program. :wtf: I think that's a hint on how old the joke is.
Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
Kindergartner C:\>echo Hello, World. :)
- S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.
-
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
You say "Goodbye" and I say "Hello, hello, hello". I don't know why you say "Goodbye", I say "Hello, hello, hello". I don't know why you say goodbye, I say hello. :) Marc
Reverse Engineering Legacy Applications
How To Think Like a Functional Programmer
My Blog
Computational Types in C# and F# -
You say "Goodbye" and I say "Hello, hello, hello". I don't know why you say "Goodbye", I say "Hello, hello, hello". I don't know why you say goodbye, I say hello. :) Marc
Reverse Engineering Legacy Applications
How To Think Like a Functional Programmer
My Blog
Computational Types in C# and F# -
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
It's 12 years since I've seen this and it has only been slightly modified in all of that time. Of course, real programmers write in FORTRAN IV:
C HELLO, WORLD! PROGRAMME IN FORTRAN IV
C
C DECLARE TEXT
C
INTEGER*4 HELLOW(4)
DATA HELLOW / 4HHELL, 4HO, W, 4HORLD, 4H! /
C
C OUTPUT TEXT
C
WRITE (6, 10) (HELLOW(I), I = 1, 4)
10 FORMAT (1H , 4(A4))
C
C FINISHED
C
STOP
END -
It would be nice to read a thread in this forum without having you throw in a reference to the Beatles. :wtf:
MehGerbil wrote:
It would be nice to read a thread in this forum without having you throw in a reference to the Beatles.
Well, all I have to say to that is.... LET IT BE! ;P Marc
Reverse Engineering Legacy Applications
How To Think Like a Functional Programmer
My Blog
Computational Types in C# and F# -
High School/Jr.High
10 PRINT "HELLO WORLD"
20 ENDFirst year in College
program Hello(input, output)
begin
writeln('Hello World')
endSecond year in college
(defun hello
(print
(cons 'Hello (list 'World))))New professional
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}Seasoned professional
#include <iostream.h>
#include <string.h>class string
{
private:
int size;
char *ptr;string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size) { ptr = new char\[size + 1\]; strcpy(ptr, s.ptr); } ~string() { delete \[\] ptr; } friend ostream &operator <<(ostream &, const string &); string &operator=(const char \*);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}int main()
{
string str;str = "Hello World"; cout << str << endl; return(0);
}
Master programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");// bring in my interfaces #include "pshlo.idl" \[ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) \] cotype THello
{
interface IHello;
interface IPersistFile;
};
};[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{// some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb")
-
Kindergartner C:\>echo Hello, World. :)
- S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.