<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[missing Forum — Hello world!]]></title>
		<link>https://forum.missingno.de/topic/1091/</link>
		<atom:link href="https://forum.missingno.de/feed/rss/topic/1091/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Hello world!.]]></description>
		<lastBuildDate>Tue, 09 Jun 2015 22:23:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Hello world!]]></title>
			<link>https://forum.missingno.de/post/12002/#p12002</link>
			<description><![CDATA[<p>jo kenn ich hab mal n paar compiled ^^ (man muss nur schaun das man die richtige gcc version hat damit die bugs auch korrekt genutzt werden können xD)</p>]]></description>
			<author><![CDATA[null@example.com (Matombo)]]></author>
			<pubDate>Tue, 09 Jun 2015 22:23:33 +0000</pubDate>
			<guid>https://forum.missingno.de/post/12002/#p12002</guid>
		</item>
		<item>
			<title><![CDATA[Re: Hello world!]]></title>
			<link>https://forum.missingno.de/post/11994/#p11994</link>
			<description><![CDATA[<p>Richtig hart sind die Sachen <a href="http://www.ioccc.org/">hier</a>. Und das ist &quot;nur&quot; C-Kunst.</p>]]></description>
			<author><![CDATA[null@example.com (missingno)]]></author>
			<pubDate>Wed, 20 May 2015 10:53:46 +0000</pubDate>
			<guid>https://forum.missingno.de/post/11994/#p11994</guid>
		</item>
		<item>
			<title><![CDATA[Re: Hello world!]]></title>
			<link>https://forum.missingno.de/post/11991/#p11991</link>
			<description><![CDATA[<p>Seasoned professional oled so hard, weil ich grad mit solcher c++ kunst zu tun hab xD</p>]]></description>
			<author><![CDATA[null@example.com (Matombo)]]></author>
			<pubDate>Tue, 19 May 2015 23:14:35 +0000</pubDate>
			<guid>https://forum.missingno.de/post/11991/#p11991</guid>
		</item>
		<item>
			<title><![CDATA[Hello world!]]></title>
			<link>https://forum.missingno.de/post/11989/#p11989</link>
			<description><![CDATA[<h5>Hello World</h5><p>Dies sind &quot;Hello World&quot; Programme von Leuten in unterschiedlichen Stufen ihrer &quot;Karriere&quot;.</p><p><span class="bbu">High School / Jr. High</span><br />[code=basic]10 PRINT &quot;HELLO WORLD&quot;<br />20 END[/code]</p><p><span class="bbu">First year in College</span><br />[code=pascal]program Hello(input, output)<br />&nbsp; begin<br />&nbsp; &nbsp; writeln(&#039;Hello World&#039;)<br />&nbsp; end.[/code]</p><p><span class="bbu">Senior year in College</span><br />[code=lisp](defun hello<br />&nbsp; (print<br />&nbsp; &nbsp; (cons &#039;Hello (list &#039;World))))[/code]</p><p><span class="bbu">New professional</span><br />[code=c]#include &lt;stdio.h&gt;<br />void main(void)<br />{<br />&nbsp; char *message[] = {&quot;Hello &quot;, &quot;World&quot;};<br />&nbsp; int i;</p><p>&nbsp; for(i = 0; i &lt; 2; ++i)<br />&nbsp; &nbsp; printf(&quot;%s&quot;, message[i]);<br />&nbsp; printf(&quot;\n&quot;);<br />}[/code]</p><p><span class="bbu">Seasoned professional</span><br />[code=cpp]#include &lt;iostream.h&gt;<br />#include &lt;string.h&gt;</p><p>class string<br />{<br />private:<br />&nbsp; int size;<br />&nbsp; char *ptr;</p><p>public:<br />&nbsp; string() : size(0), ptr(new char(&#039;\0&#039;)) {}</p><p>&nbsp; string(const string &amp;s) : size(s.size)<br />&nbsp; {<br />&nbsp; &nbsp; ptr = new char[size + 1];<br />&nbsp; &nbsp; strcpy(ptr, s.ptr);<br />&nbsp; }</p><p>&nbsp; ~string()<br />&nbsp; {<br />&nbsp; &nbsp; delete [] ptr;<br />&nbsp; }</p><p>&nbsp; friend ostream &amp; operator &lt;&lt;(ostream &amp;, const string &amp;);<br />&nbsp; string &amp;operator=(const char *);<br />};</p><p>ostream &amp;operator&lt;&lt;(ostream &amp;stream, const string &amp;s)<br />{<br />&nbsp; return(stream &lt;&lt; s.ptr);<br />}</p><p>string &amp;string::operator=(const char *chrs)<br />{<br />&nbsp; if (this != &amp;chrs)<br />&nbsp; {<br />&nbsp; &nbsp; delete [] ptr;<br />&nbsp; &nbsp; size = strlen(chrs);<br />&nbsp; &nbsp; ptr = new char[size + 1];</p><p>&nbsp; &nbsp; strcpy(ptr, chrs);<br />&nbsp; }<br />&nbsp; return(*this);<br />}</p><p>int main()<br />{<br />&nbsp; string str;</p><p>&nbsp; str = &quot;Hello World&quot;;<br />&nbsp; cout &lt;&lt; str &lt;&lt; end1;</p><p>&nbsp; return(0);<br />}[/code]</p><p><span class="bbu">Master Programmer</span><br />[code=cpp][<br />uuid(2573F8F4-CFEE-101A-9A9E-00AA00342820)<br />]<br />library LHello<br />{<br />&nbsp; // bring in the master library<br />&nbsp; importlib(&quot;actimp.tlb&quot;);<br />&nbsp; importlib(&quot;actexp.tlb&quot;);</p><p>&nbsp; // bring in my interfaces<br />&nbsp; #include &quot;pshlo.idl&quot;</p><p>&nbsp; [<br />&nbsp; uuid(2573F8F4-CFEE-101A-9A9E-00AA00342820)<br />&nbsp; ]<br />&nbsp; cotype THello<br /> {<br /> interface IHello;<br /> interface IPersistFile;<br /> };<br />};</p><p>[<br />exe,<br />uuid(2573F8F4-CFEE-101A-9A9E-00AA00342820)<br />]<br />module CHelloLib<br />{<br />&nbsp; // some code related header files<br />&nbsp; importheader(&lt;windows.h&gt;);<br />&nbsp; importheader(&lt;ole2.h&gt;);<br />&nbsp; importheader(&lt;except.hxx&gt;);<br />&nbsp; importheader(&quot;pshlo.h&quot;);<br />&nbsp; importheader(&quot;shlo.hxx&quot;);<br />&nbsp; importheader(&quot;mycls.hxx&quot;);</p><p>&nbsp; // needed typelibs<br />&nbsp; importlib(&quot;actimp.tlb&quot;);<br />&nbsp; importlib(&quot;actexp.tlb&quot;);<br />&nbsp; importlib(&quot;thlo.tlb&quot;);</p><p>&nbsp; [<br />&nbsp; uuid(2573F891-CFEE-101A-9A9F-00AA00342820),<br />&nbsp; aggregatable<br />&nbsp; ]<br />&nbsp; coclass CHello<br /> {<br /> cotype THello;<br /> };<br />};</p><br /><p>#include &quot;ipfix.hxx&quot;</p><p>extern HANDLE hEvent;</p><p>class CHello : public CHelloBase<br />{<br />public:<br />&nbsp; IPFIX(CLSID_CHello);</p><p>&nbsp; CHello(IUnknown *pUnk);<br />&nbsp; ~CHello();</p><p>&nbsp; HRESULT _stdcall PrintSz(LPWSTR pwszString);</p><p>private:<br />&nbsp; static int cObjRef;<br />};</p><br /><p>#include &lt;windows.h&gt;<br />#include &lt;ole2.h&gt;<br />#include &lt;stdio.h&gt;<br />#include &lt;stdlib.h&gt;<br />#include &quot;thlo.h&quot;<br />#include &quot;pshlo.h&quot;<br />#include &quot;shlo.hxx&quot;<br />#include &quot;mycls.hxx&quot;</p><p>int CHello::cObjRef = 0;</p><p>CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)<br />{<br />&nbsp; cObjRef++;<br />&nbsp; return;<br />}</p><p>HRESULT _stdcall CHello::PrintSz(LPWSTR pwszString)<br />{<br />&nbsp; printf(&quot;%ws\n&quot;, pwszString);<br />&nbsp; return(ResultFromScode(S_OK));<br />}</p><br /><p>CHello::~CHello(void)<br />{<br />// when the object count goes to zero, stop the server<br />cObjRef--;<br />if( cObjRef == 0 )<br />&nbsp; PulseEvent(hEvent);<br />return;<br />}</p><p>#include &lt;windows.h&gt;</p><p>#include &lt;ole2.h&gt;<br />#include &quot;pshlo.h&quot;<br />#include &quot;shlo.hxx&quot;<br />#include &quot;mycls.hxx&quot;</p><p>HANDLE hEvent;</p><p>int _cdec1 main(<br />int argc,<br />char * argv[]<br />) {<br />ULONG ulRef;<br />DWORD dwRegistration;<br />CHelloCF *pCF = new CHelloCF();</p><p>hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);</p><p>// Initialize the OLE libraries<br />CoInitializeEx(NULL, COINIT_MULTITHREADED);</p><p>CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &amp;dwRegistration);</p><p>// wait on an event to stop<br />WaitForSingleObject(hEvent, INFINITE);</p><p>// revoke and release the class object<br />CoRevokeClassObject(dwRegistration);<br />ulRef = pCF-&gt;Release();</p><p>// Tell OLE we are going away.<br />CoUninitialize();</p><p>return(0); }</p><p>extern CLSID CLSID_CHello;<br />extern UUID LIBID_CHelloLib;</p><p>CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */<br />&nbsp; 0x2573F891,<br />&nbsp; 0xCFEE,<br />&nbsp; 0x101A,<br />&nbsp; { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }<br />};</p><p>UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */<br />&nbsp; 0x2573F890,<br />&nbsp; 0xCFEE,<br />&nbsp; 0x101A,<br />&nbsp; { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }<br />};</p><p>#include &lt;windows.h&gt;<br />#include &lt;ole2.h&gt;<br />#include &lt;stdlib.h&gt;<br />#include &lt;string.h&gt;<br />#include &lt;stdio.h&gt;<br />#include &quot;pshlo.h&quot;<br />#include &quot;shlo.hxx&quot;<br />#include &quot;clsid.h&quot;</p><p>int _cdec1 main(<br />int argc,<br />char * argv[]<br />) {<br />HRESULT hRslt;<br />IHello&nbsp; &nbsp; &nbsp; &nbsp; *pHello;<br />ULONG ulCnt;<br />IMoniker * pmk;<br />WCHAR wcsT[_MAX_PATH];<br />WCHAR wcsPath[2 * _MAX_PATH];</p><p>// get object path<br />wcsPath[0] = &#039;&amp;slash;0&#039;;<br />wcsT[0] = &#039;&amp;slash;0&#039;;<br />if(argc 1) {<br />&nbsp; mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);<br />&nbsp; wcsupr(wcsPath);<br />&nbsp; }<br />else {<br />&nbsp; fprintf(strderr, &quot;Object path must be specified\n&quot;);<br />&nbsp; return(1);<br />&nbsp; }</p><p>// get print string<br />if(argc 2)<br />&nbsp; mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);<br />else<br />&nbsp; wcscpy(wcsT, L&quot;Hello World&quot;);</p><p>printf(&quot;Linking to object %ws\n&quot;, wcsPath);<br />printf(&quot;Text String %ws\n&quot;, wcsT);</p><p>// Initialize the OLE libraries<br />hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);</p><p>if(SUCCEEDED(hRslt)) {</p><p>&nbsp; hRslt = CreateFileMoniker(wcsPath, &amp;pmk);<br />&nbsp; if(SUCCEEDED(hRslt))<br />hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&amp;pHello);</p><p>&nbsp; if(SUCCEEDED(hRslt)) {</p><p>// print a string out<br />pHello-&gt;PrintSz(wcsT);</p><p>Sleep(2000);<br />ulCnt = pHello-&gt;Release();<br />}<br />&nbsp; else<br />printf(&quot;Failure to connect, status: %lx&quot;, hRslt);</p><p>&nbsp; // Tell OLE we are going away.<br />&nbsp; CoUnitialize();<br />&nbsp; }</p><p>return(0);<br />}[/code]</p><p><span class="bbu">Apprentice Hacker</span><br />[code=perl]#!/usr/local/bin/perl<br />$msg=&quot;Hello, world.\n&quot;;<br />if ($#ARGV &gt;=0) {<br />&nbsp; while(defined($arg=shift(@ARGV))) {<br />&nbsp; &nbsp; $outfilename = $arg;<br />&nbsp; &nbsp; open(FILE, &quot;&gt;&quot; . $outfilename) || die &quot;Can&#039;t write $arg: $!\n&quot;;<br />&nbsp; &nbsp; print (FILE $msg);<br />&nbsp; &nbsp; close(FILE) || die &quot;Can&#039;t close $arg: $!\n&quot;;<br />&nbsp; }<br />} else {<br />&nbsp; print ($msg);<br />}<br />1;[/code]</p><p><span class="bbu">Experienced Hacker</span><br />[code=c]#include &lt;stdio.h&gt;<br />#define S &quot;Hello, World\n&quot;<br />main(){exit(printf(S) == strlen(S) ? 0 : 1);}[/code]</p><p><span class="bbu">Seasoned Hacker</span><br />[code=bash]% cc -o a.out ~/src/misc/hw/hw.c<br />% a.out[/code]</p><p><span class="bbu">Guru Hacker</span><br />[code=bash]% cat<br />Hello, world.<br />^D[/code]</p><p><span class="bbu">New Manager</span><br />[code=basic]10 PRINT &quot;Hello world&quot;<br />20 END[/code]</p><p><span class="bbu">Middle Manager</span><br />[code=bash]% mail -s &quot;Hello, world.&quot; bob@b12<br />Bob, could you please write me a program that prints &quot;Hello, world.&quot;?<br />I need it by tomorrow.<br />^D[/code]</p><p><span class="bbu">Senior Manager</span><br />[code=bash]% zmail jim<br />I need a &quot;Hello, world.&quot; program by this afternoon.[/code]</p><p><span class="bbu">Chief Executive</span><br />[code=bash]% letter<br />letter: Command not found.<br />% mail<br />To: ^X ^F ^C<br />% help mail<br />help: Command not found.<br />% damn!<br />: Event unrecognized<br />% logout[/code]</p>]]></description>
			<author><![CDATA[null@example.com (missingno)]]></author>
			<pubDate>Tue, 19 May 2015 07:43:38 +0000</pubDate>
			<guid>https://forum.missingno.de/post/11989/#p11989</guid>
		</item>
	</channel>
</rss>
