interesting article today is Hello | combing1のブログ

combing1のブログ

ブログの説明を入力します。

Last year, I issued an article 'Python programmers Air Max 2011 Womens Purple Black Grey evolutionary history', the article is an example 2015 Nike Free 5.0 factorial, citing a variety of programmers writing code that, even including web designers. This interesting article today is Hello World, for example, cited New Nike Free 5.0 V4 Purple Yellow Shoes in the various stages of the programmer's code. In addition, this has a certain history, you should have at least 10 years. Air Jordan Outlet PS: highlights is always in the final. :) Junior High / High School (Note: Basic) 10 PRINT \u0026 quot; HELLO WORLD \u0026 quot; 20 END freshman (Note: Pascal). Program Hallo (output); begin writeln ('! Hello, world') end junior / senior ( defun hello (print (cons 'Hello (list' World)))) entry in the first year #include \u0026 lt; stdio.h \u0026 gt; void main (void) {char * message [] = {\u0026 quot; Hello \u0026 quot ;, \u0026 quot; World \u0026 quot ;}; int i; for (i = 0; i \u0026 lt; 2; ++ i) printf (\u0026 quot;% s \u0026 quot ;, message [i]); printf (\u0026 quot; \\ n \u0026 quot;);} entry did a few years #include \u0026 lt; iostream.h \u0026 gt; #include \u0026 lt; string.h \u0026 gt; class string {private: int size; char * ptr; string (): size (0), ptr (new char [1]) {ptr [0] = 0;} string (const string \u0026 amp; s): size (s.size) {ptr = new char [size + 1]; strcpy (ptr, s.ptr);} ~ string () {delete [] ptr; } friend ostream \u0026 amp; operator \u0026 lt; \u0026 lt; (ostream \u0026 amp ;, const string \u0026 amp;); string \u0026 Nike Free Run 3 Women amp; operator = (const char *);}; ostream \u0026 amp; operator \u0026 lt; \u0026 lt; (ostream \u0026 amp; stream, const string \u0026 amp ; s) {return (stream \u0026 lt; \u0026 lt; s.ptr);} string \u0026 amp; string :: operator = (const char * chrs) {if (this = \u0026 amp;! chrs) {delete [] ptr; size = strlen (chrs); ptr = new char [size + 1]; strcpy (ptr, chrs);} return (* this);} int main () {string str; str = \u0026 quot; Hello World \u0026 quot ;; cout \u0026 lt; \u0026 lt; str \u0026 lt; \u0026 lt; endl; return (0);} master programmer [uuid (2573F8F4-CFEE-101A-9A9F-00AA00342820)] library LHello {// bring in the master library importlib (\u0026 quot; actimp.tlb \u0026 quot;); importlib (\u0026 quot; actexp.tlb \u0026 quot;); // bring in my interfaces #include \u0026 quot; pshlo.idl \u0026 quot; [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 (\u0026 lt; windows.h \u0026 gt;); importheader (\u0026 lt; ole2.h \u0026 gt;); importheader (\u0026 lt ; except.hxx \u0026 gt;); importheader (\u0026 quot; pshlo.h \u0026 quot;); importheader (\u0026 quot; shlo.hxx New Nike Free Run 3 Shoes Silver 3 \u0026 quot;); importheader (\u0026 quot; mycls.hxx \u0026 quot;); // needed typelibs importlib (\u0026 quot; actimp.tlb \u0026 quot;) ; importlib (\u0026 quot; actexp.tlb \u0026 quot;); importlib (\u0026 quot; thlo.tlb \u0026 quot;); [uuid (2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable] coclass CHello {cotype THello;};}; #include \u0026 quot ; ipfix.hxx \u0026 quot; extern HANDLE hEvent; class CHello: public CHelloBase {public: IPFIX (CLSID_CHello); CHello (IUnknown * pUnk); ~ CHello (); HRESULT __stdcall PrintSz (LPWSTR pwszString); private: static int cObjRef;}; #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 lt; stdio.h \u0026 gt; #include \u0026 lt; stdlib.h \u0026 gt; #include \u0026 quot; thlo.h \u0026 quot; #include \u0026 quot; Nike Air Max pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet \u0026 quot; #include \u0026 quot; mycls.hxx \u0026 quot; int CHello :: cObjRef = 0; CHello :: CHello (IUnknown * pUnk): CHelloBase (pUnk) {cObjRef ++; return;} HRESULT __stdcall CHello :: PrintSz (LPWSTR pwszString) {printf (\u0026 quot;% ws \u0026 quot ;, pwszString); return (ResultFromScode (S_OK));} Nike Kobe VIII CHello :: New Nike Free 5.0 V4 Grey Lime Trainers ~ CHello (void) {// when the object count goes to zero, stop the server cObjRef--; if (cObjRef == 0) PulseEvent (hEvent); return;} #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 quot; pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx \u0026 quot; #include \u0026 quot; mycls.hxx \u0026 quot; HANDLE hEvent; int _cdecl main Nike Lebron 10.8 (int argc, char * argv []) {ULONG ulRef; DWORD dwRegistration; CHelloCF * pCF = new CHelloCF (); hEvent = CreateEvent (NULL, FALSE, FALSE, NULL); / / Initialize the OLE libraries CoInitializeEx (NULL, COINIT_MULTITHREADED); CoRegisterClassObject (CLSID_CHello, pCF, Air Jordan Heel CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, \u0026 amp; dwRegistration); // New Nike Free 5.0 V4 Purple Yellow Shoes wait on an event to stop WaitForSingleObject (hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject (dwRegistration); ulRef = pCF- \u0026 gt; Release (); // Tell OLE we are going away CoUninitialize ();. return (0);} extern CLSID CLSID_CHello; extern UUID LIBID_CHelloLib; CLSID CLSID_CHello = {/ * 2573F891- CFEE-101A-9A9F-00AA00342820 * / 0x2573F891, 0xCFEE, 0x101A, {0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20}}; UUID LIBID_CHelloLib = {/ * 2573F890-CFEE-101A-9A9F-00AA00342820 * / 0x2573F890, 0xCFEE, 0x101A, {0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20}}; #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 lt; stdlib.h \u0026 gt; #include \u0026 lt; string.h \u0026 gt; #include \u0026 lt; stdio.h \u0026 gt; #include \u0026 quot; pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx \u0026 quot; #include \u0026 quot; clsid.h \u0026 quot; int _cdecl main (int argc, char * argv []) {HRESULT hRslt; IHello * pHello; ULONG ulCnt; IMoniker * pmk; WCHAR wcsT [_MAX_PATH]; WCHAR wcsPath [2 * _MAX_PATH]; // get object path wcsPath 585388-083 Anti-Nerf Nike KD V Elite Outlet [0] = '\\ 0'; wcsT [0 ] = '\\ 0'; if (argc \u0026 gt; 1) {mbstowcs (wcsPath, argv [1], strlen (argv [1]) + 1); wcsupr (wcsPath);} else {fprintf (stderr, \u0026 quot; Object path must be specified \\ n \u0026 quot;); return (1);} // get print string if (argc 585388-083 Anti-Nerf Nike KD V Elite Outlet \u0026 gt; 2) mbstowcs (wcsT, argv [2], strlen (argv [2]) + 1); else wcscpy ( wcsT, L \u0026 quot; Hello World \u0026 quot;); printf (\u0026 quot; Linking to object% ws \\ n \u0026 quot ;, wcsPath); printf (\u0026 quot; Text String% ws \\ n \u0026 quot ;, wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx ( NULL, COINIT_MULTITHREADED); if (SUCCEEDED (hRslt)) {hRslt = CreateFileMoniker (wcsPath, \u0026 amp; pmk); if (SUCCEEDED (hRslt)) hRslt = BindMoniker (pmk, 0, IID_IHello, (void **) \u0026 amp; pHello) ; if (SUCCEEDED (hRslt)) {// print a string out pHello- \u0026 gt; PrintSz (wcsT); Sleep (2000); ulCnt = pHello- \u0026 gt; Release ();} else printf (\u0026 quot; Failure to connect, status :% lx \u0026 quot ;, hRslt); // Tell OLE we are going away CoUninitialize ();} return (0);} novice hacker # / usr / local / bin / perl $ msg = \u0026 quot; Hello, world \\.!. n \u0026 quot ;; if ($ # ARGV \u0026 gt; = 0) {while (defined ($ arg = shift (ARGV))) {$ outfilename = $ arg; open (FILE, \u0026 quot; \u0026 gt; \u0026 quot;. $ outfilename) | | die \u0026 quot; Can not write $ arg: $ \\ n \u0026 quot ;; print (FILE $ msg); close (FILE) || die \u0026 quot; Can not close $ arg: $ \\ n \u0026 quot ;;}} else {!! print ($ msg);} 1; an experienced hacker #include \u0026 lt; stdio.h \u0026 gt; #define S \u0026 quot; Hello, World \\ n \u0026 quot;? main () {exit (printf (S) == strlen (S) 0 : 1);} into the line worked for some years hacker% cc -o a.out ~ / src / misc / hw / hw.c% a.out hacker guru% echo \u0026 quot; Hello, world \u0026 quot; 10 PRINT novice manager \u0026 quot; HELLO WORLD \u0026 quot; 20 END middle managers mail -s \u0026 quot; Hello, world \u0026 quot;. '. Hello, world' bob @ b12 Bob, can you help me write the output of a program it? I tomorrow. Thank you - senior managers% zmail jimJim, this afternoon I would output 'Hello, world.' Program! CEO / CEO% letter letter: Command not found% mail To:. ^ X ^ F ^ C% help mail help: Command not found% damn:.!! Event unrecognized% logoutinteresting article: the evolutionary history of programmers