|
作者: NetDemon [netdemon] ADMIN | 登录 |
一个打印"hello world"的C程序 [ 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"); importlib("actexp.tlb"); importlib("thlo.tlb"); [ uuid(2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable ] coclass CHello { cotype THello; }; }; #include "ipfix.hxx" 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 <windows.h> #include <ole2.h> #include <stdio.h> #include <stdlib.h> #include "thlo.h" #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" int CHello::cObjRef = 0; CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk) { cObjRef++; return; } HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString) { printf("%ws\n", pwszString); return(ResultFromScode(S_OK)); } CHello::~CHello(void) { // when the object count goes to zero, stop the server cObjRef--; if( cObjRef == 0 ) PulseEvent(hEvent); return; } #include <windows.h> #include <ole2.h> #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" HANDLE hEvent; int _cdecl main( 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, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &dwRegistration); // wait on an event to stop WaitForSingleObject(hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject(dwRegistration); ulRef = pCF->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 <windows.h> #include <ole2.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "pshlo.h" #include "shlo.hxx" #include "clsid.h" 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[0] = ‘\0‘; wcsT[0] = ‘\0‘; if( argc > 1) { mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1); wcsupr(wcsPath); } else { fprintf(stderr, "Object path must be specified\n"); return(1); } // get print string if(argc > 2) mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1); else wcscpy(wcsT, L"Hello World"); printf("Linking to object %ws\n", wcsPath); printf("Text String %ws\n", wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED); if(SUCCEEDED(hRslt)) { hRslt = CreateFileMoniker(wcsPath, &pmk); if(SUCCEEDED(hRslt)) hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello); if(SUCCEEDED(hRslt)) { // print a string out pHello->PrintSz(wcsT); Sleep(2000); ulCnt = pHello->Release(); } else printf("Failure to connect, status: %lx", hRslt); // Tell OLE we are going away. CoUninitialize(); } return(0); 大家自己数数有几行吧? [此贴被 NetDemon(netdemon) 在 12月06日23时50分 编辑过] |
地主 发表时间: 12/06 23:02 |
回复: NetDemon [netdemon] ADMIN | 登录 |
原贴菜鸟乐园 ----- 一个程序员的进化 /*------------------------------------------- 程序员的进化――从学生到首席执行官 翻译 2002 王咏刚 http://www.contextfree.net/ 转译自 Omri‘s Computer Humor Page http://www.cs.bgu.ac.il/~omri/Humor/ -------------------------------------------*/ -------------------------------------------------------------------------------- 中学阶段 10 PRINT "HELLO WORLD" 20 END -------------------------------------------------------------------------------- 大学一年级 program Hello(input, output) begin writeln(‘Hello World‘) end. -------------------------------------------------------------------------------- 大学高年级 (defun hello (cons ‘Hello (list ‘World)))) -------------------------------------------------------------------------------- 初级程序员 #include <stdio.h> void main(void) { char *message[] = {"Hello ", "World"}; int i; for(i = 0; i < 2; ++i) printf("%s", message[i]); printf("\n"); } -------------------------------------------------------------------------------- 编程老鸟 #include <iostream.h> #include <string.h> class string { private: int size; char *ptr; public: string() : size(0), ptr(new char(‘\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 << end return(0); } -------------------------------------------------------------------------------- 编程高手 [ 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"); importlib("actexp.tlb"); importlib("thlo.tlb"); [ uuid(2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable ] coclass CHello { cotype THello; }; }; #include "ipfix.hxx" 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 <windows.h> #include <ole2.h> #include <stdio.h> #include <stdlib.h> #include "thlo.h" #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" int CHello::cObjRef = 0; CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk) { cObjRef++; return; } HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString) { printf("%ws\n", pwszString); return(ResultFromScode(S_OK)); } CHello::~CHello(void) { // when the object count goes to zero, stop the server cObjRef--; if( cObjRef == 0 ) PulseEvent(hEvent); return; } #include <windows.h> #include <ole2.h> #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" HANDLE hEvent; int _cdecl main( 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, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &dwRegistration); // wait on an event to stop WaitForSingleObject(hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject(dwRegistration); ulRef = pCF->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 <windows.h> #include <ole2.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "pshlo.h" #include "shlo.hxx" #include "clsid.h" 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[0] = ‘\0‘; wcsT[0] = ‘\0‘; if( argc > 1) { mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1); wcsupr(wcsPath); } else { fprintf(stderr, "Object path must be specified\n"); return(1); } // get print string if(argc > 2) mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1); else wcscpy(wcsT, L"Hello World"); printf("Linking to object %ws\n", wcsPath); printf("Text String %ws\n", wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED); if(SUCCEEDED(hRslt)) { hRslt = CreateFileMoniker(wcsPath, &pmk); if(SUCCEEDED(hRslt)) hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello); if(SUCCEEDED(hRslt)) { // print a string out pHello->PrintSz(wcsT); Sleep(2000); ulCnt = pHello->Release(); } else printf("Failure to connect, status: %lx", hRslt); // Tell OLE we are going away. CoUninitialize(); } return(0); } -------------------------------------------------------------------------------- 黑客初阶 #!/usr/local/bin/perl $msg="Hello, world.\n"; if ($#ARGV >= 0) { while(defined($arg=shift(@ARGV))) { $outfilename = $arg; open(FILE, ">" . $outfilename) || die "Can‘t write $arg: $!\n"; print (FILE $msg); close(FILE) || die "Can‘t close $arg: $!\n"; } } else { print ($msg); } 1; -------------------------------------------------------------------------------- 黑客有成 #include <stdio.h> #define S "Hello, World\n" main(){exit(printf(S) == strlen(S) ? 0 : 1);} -------------------------------------------------------------------------------- 黑客高手 % cc -o a.out ~/src/misc/hw/hw.c % a.out -------------------------------------------------------------------------------- 黑客大虾 % cat Hello, world. ^D -------------------------------------------------------------------------------- 初级经理 10 PRINT "HELLO WORLD" 20 END -------------------------------------------------------------------------------- 中级经理 mail -s "Hello, world." bob@b12 Bob, could you please write me a program that prints "Hello, world."? I need it by tomorrow. ^D -------------------------------------------------------------------------------- 高级经理 % zmail jim I need a "Hello, world." program by this afternoon. -------------------------------------------------------------------------------- 首席执行官 % letter letter: Command not found. To: ^X ^F ^C % help mail help: Command not found. % damn! !: Event unrecognized % logout -------------------------------------------------------------------------------- |
B1层 发表时间: 12/06 23:03 |
回复: ceo_8008 [ceo_8008] 论坛用户 | 登录 |
哇塞・・・ |
B2层 发表时间: 12/07 00:24 |
回复: Aoming [aoming] 版主 | 登录 |
这个不是灌水 |
B3层 发表时间: 12/07 05:51 |
回复: lwei889 [lwei889] 论坛用户 | 登录 |
一个字:“好” |
B4层 发表时间: 12/07 11:07 |
回复: cyshaoping [cyshaoping] 论坛用户 | 登录 |
很多都不懂 |
B5层 发表时间: 12/07 18:10 |
回复: huweiwei [huweiwei] 论坛用户 | 登录 |
只知道这个是program的 -------------------------------------------------------------------------------- 大学一年级 program Hello(input, output) begin writeln(‘Hello World‘) end. |
B6层 发表时间: 12/07 19:40 |
回复: NetDemon [netdemon] ADMIN | 登录 |
我再来一个286级别的 ------------------------------------------------ .file "hw.c" .version "01.01" gcc2_compiled.: .section .rodata .LC0: .byte 0x68,0x65,0x6c,0x6c,0x6f,0x20,0x77,0x6f,0x72,0x6c .byte 0x64,0x21,0xa,0x0 .text .p2align 2,0x90 .globl main .type main,@function main: pushl %ebp movl %esp,%ebp subl $8,%esp addl $-12,%esp pushl $.LC0 call printf addl $16,%esp .L2: leave ret .Lfe1: .size main,.Lfe1-main .ident "GCC: (GNU) c 2.95.4 20020320 [FreeBSD]" ------------------------------------------------ |
B7层 发表时间: 12/07 22:01 |
回复: 286 [unique] 版主 | 登录 |
KAO,你这个猪头ND,怎么拿那个烂程序攻击我的美好形象。 我现在打印“Hello world.”都是这样的: c:\> echo Hello,world. |
B8层 发表时间: 12/08 09:18 |
回复: kenter1643 [kenter1643] 论坛用户 | 登录 |
没话可说!!顶顶 |
B9层 发表时间: 12/09 15:47 |
回复: honyry [honyry] 论坛用户 | 登录 |
哈哈 还可以 有创意! 代表编程水平的不同阶段哦!我现在也只能是员 #include <stdio.h> void main(void) { char *message[] = {"Hello ", "World"}; int i; for(i = 0; i < 2; ++i) printf("%s", message[i]); printf("\n"); } |
B10层 发表时间: 12/09 16:38 |
回复: lgf [lgf] 论坛用户 | 登录 |
我知道一个PRINTF 别的吗? |
B11层 发表时间: 12/09 17:31 |
回复: Sn-D [sn_d] 论坛用户 | 登录 |
c>type echo.c main(int argc,char *argv[]) {while(--argc>0) printf("%s%c",*++argv,(argc>1)?' ':'\n'); } [此贴被 Sn-D(sn_d) 在 12月11日10时30分 编辑过] |
B12层 发表时间: 12/10 12:50 |
回复: jiantan [jiantan] 论坛用户 | 登录 |
经典好帖! 顶一下! 大家都来看。 |
B13层 发表时间: 12/10 19:49 |
回复: cck123 [cck123] 论坛用户 | 登录 |
唉~~高手放个屁都会人说经典! |
B14层 发表时间: 12/11 00:08 |
回复: 286 [unique] 版主 | 登录 |
最可悲的是常常有人把高手写的东西叫作屁。 |
B15层 发表时间: 12/11 09:34 |
回复: whq1015 [whq1015] 论坛用户 | 登录 |
hao |
B16层 发表时间: 12/11 10:13 |
回复: coom [coom] 论坛用户 | 登录 |
我也只能看到程序员啊! 太难了 !| |
B17层 发表时间: 12/11 14:03 |
回复: ziaichen [ziaichen] 论坛用户 | 登录 |
这个程序,让我无语,终于明白什么是差距了 赞叹``````自愧不如 我顶!!!!!! |
B18层 发表时间: 12/11 17:28 |
回复: realpope [realpope] 论坛用户 | 登录 |
无言以对 只有=苦修了 |
B19层 发表时间: 12/12 12:22 |
回复: zhoen889 [zhoen889] 论坛用户 | 登录 |
同意楼上的!!我顶!!! |
B20层 发表时间: 12/12 13:06 |
回复: afan271314 [afan271314] 论坛用户 | 登录 |
一点 不懂 不过快懂了 因为我要学了 |
B21层 发表时间: 12/12 17:53 |
回复: wskli [wskli] | 登录 |
谁能教教我呀! 快考试了,还什么都不会! |
B22层 发表时间: 12/16 12:47 |
回复: xto [xto] 论坛用户 | 登录 |
唉~~无话可说,终于明白什么是差距了~~! |
B23层 发表时间: 12/17 05:24 |
回复: cike [cike] 论坛用户 | 登录 |
好帖,真是好帖啊!!!! 顶顶顶 |
B24层 发表时间: 04-01-13 21:31 |
回复: yingzike [yingzike] 论坛用户 | 登录 |
|
B25层 发表时间: 04-01-14 09:25 |
回复: zjhacker [zjhacker] 论坛用户 | 登录 |
向老大学习, |
B26层 发表时间: 04-01-14 18:30 |
回复: crs502 [crs502] 论坛用户 | 登录 |
不行了~~我不能再在线上呆了~~ 我要翻着书过年~~过了看我要看286级别的~~~ |
B27层 发表时间: 04-01-15 01:58 |
回复: group [group] 论坛用户 | 登录 |
捧着鸡毛当令箭哪?那些程序真TMD是讽刺啊 就是echo Hello World!是最好的!其他都是垃圾 |
B28层 发表时间: 04-01-15 09:10 |
回复: 286 [unique] 版主 | 登录 |
|
B29层 发表时间: 04-01-15 09:21 |
回复: IcyFire [jacky8714] 论坛用户 | 登录 |
|
B30层 发表时间: 04-01-15 17:41 |
回复: abctm [abctm] 版主 | 登录 |
|
B31层 发表时间: 04-01-15 17:54 |
回复: xiaokai [xiaokai] 论坛用户 | 登录 |
像是VC++.NET 我不喜欢,还是VC++ 6.0好! |
B32层 发表时间: 04-01-15 21:40 |
回复: sd577035 [sd577035] 论坛用户 | 登录 |
????? |
B33层 发表时间: 04-01-15 21:55 |
回复: sniper167 [sniper167] 论坛用户 | 登录 |
天外有天 人外有人 程序外有程序 |
B34层 发表时间: 04-01-18 12:30 |
回复: YU [ysjpgf] 论坛用户 | 登录 |
ggg |
B35层 发表时间: 04-01-20 09:43 |
回复: kk [kkkyo] 论坛用户 | 登录 |
好帖 ! 看了楼上的。又感叹,又搞笑。 |
B36层 发表时间: 04-01-28 09:19 |
回复: bear2000 [bear2000] 论坛用户 | 登录 |
这个是不是就叫返朴归真啊? 先把极其简单的东西搞得无比复杂,再把无比复杂的东西搞得极其简单? |
B37层 发表时间: 04-01-28 10:33 |
回复: w315h [w315h] 论坛用户 | 登录 |
UP |
B38层 发表时间: 04-02-10 20:22 |
回复: Frankiez [frankiez84] 论坛用户 | 登录 |
我最喜欢这段 #include <stdio.h> #define S "Hello, World\n" main(){exit(printf(S) == strlen(S) ? 0 : 1);} |
B39层 发表时间: 04-02-11 12:31 |
回复: simpleboy [simpleboy] 论坛用户 | 登录 |
引用:对不起!,有点灌水,但我实在忍不住 晕,看了上面的回复我觉得我是不是自己的理解有点问题:怎么都是拍马的啊?难道就没人感到这只是个幽默吗?ND贴这段代码的本意是说,随着身份的改变,人们会变的把简单的问题复杂化,是不是这样,ND 狂晕!!!要不,我想我真的太有幽默感了,把你们的神话打破了:)对不起!!哈哈~~~~~~~~~~~ [此贴被 simpleboy(simpleboy) 在 02月13日21时13分 编辑过] |
B40层 发表时间: 04-02-13 21:11 |
回复: cyshaoping [cyshaoping] 论坛用户 | 登录 |
仁者见仁,智者见智 |
B41层 发表时间: 04-02-14 03:36 |
回复: newmyth21 [newmyth21] 论坛用户 | 登录 |
这就是Hello World啊 |
B42层 发表时间: 04-02-14 03:53 |
回复: jxzsh [jxzsh] 论坛用户 | 登录 |
说的对,本来一个简单的东西,干吗要搞的怎么复杂,非要体现什么身份. 一个好的程序应该是简单`快捷`容易维护修改,着才是最重要的. |
B43层 发表时间: 04-02-15 13:39 |
回复: lingxiang [lingxiang] 论坛用户 | 登录 |
太长了,我看的眼都花了,你是程序员吗? |
B44层 发表时间: 04-03-05 08:00 |
回复: zjs_wy1234 [zjs_wy1234] 论坛用户 | 登录 |
这也叫灌水吗? 晕 顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶 |
B45层 发表时间: 04-04-09 20:52 |
回复: snntss [snntss] 论坛用户 | 登录 |
引: -------------------------------------------------------------------------------- 黑客高手 % cc -o a.out ~/src/misc/hw/hw.c % a.out -------------------------------------------------------------------------------- 黑客大虾 % cat Hello, world. ^D -------------------------------------------------------------------------------- 我再来一个286级别的 ------------------------------------------------ .file "hw.c" .version "01.01" gcc2_compiled.: .section .rodata .LC0: .byte 0x68,0x65,0x6c,0x6c,0x6f,0x20,0x77,0x6f,0x72,0x6c .byte 0x64,0x21,0xa,0x0 .text .p2align 2,0x90 .globl main .type main,@function main: pushl %ebp movl %esp,%ebp subl $8,%esp addl $-12,%esp pushl $.LC0 call printf addl $16,%esp .L2: leave ret .Lfe1: .size main,.Lfe1-main .ident "GCC: (GNU) c 2.95.4 20020320 [FreeBSD]" ------------------------------------------------ 请问上面三个是用什么编的呀? 俺不懂.... [此贴被 飘萍浪影(snntss) 在 04月13日18时22分 编辑过] |
B46层 发表时间: 04-04-13 18:19 |
回复: haoweir [haoweir] 论坛用户 | 登录 |
倒。老大没灌水,但楼下的却灌了一大壶,既然都灌了一大壶了,也不差我这一滴了。好帖 |
B47层 发表时间: 04-04-14 09:34 |
回复: cck123 [cck123] 论坛用户 | 登录 |
既然这样我就用JAVA来一个!! 呵呵~~~ import java.util.Date; public class HelloWorldDate { public static void main(String[] args) { Date date = new Date(); System.out.println("Hello World! Now is" +date); } }//end code |
B48层 发表时间: 04-04-14 23:59 |
回复: zml2236 [zml2236] 论坛用户 | 登录 |
<HTML><HEAD><TITLE>Hello World</TITLE></HEAD></HTML> |
B49层 发表时间: 04-04-15 15:56 |
回复: ypy [ypy] 见习版主 | 登录 |
sigh~ |
B50层 发表时间: 04-04-16 14:56 |
回复: liuhui315 [liuhui315] 论坛用户 | 登录 |
棒! |
B51层 发表时间: 04-04-16 20:16 |
回复: hcz [hcz] 论坛用户 | 登录 |
为什么他要搞的那么复杂。 |
B52层 发表时间: 04-05-31 18:39 |
回复: Anubis [shajia2646] 论坛用户 | 登录 |
说实话,我就会C和一点点Basic |
B53层 发表时间: 04-06-01 12:15 |
回复: tangnade [tangnade] 论坛用户 | 登录 |
说实话,我什么也不会~~~` |
B54层 发表时间: 04-06-04 08:54 |
回复: clark008 [clark008] 论坛用户 | 登录 |
10 PRINT "HELLO WORLD" 20 END |
B55层 发表时间: 04-06-05 16:17 |
回复: heath1 [heath1] 论坛用户 | 登录 |
不用这么烦吧 |
B56层 发表时间: 04-06-05 21:04 |
回复: zhangyun [zhangyun] 论坛用户 | 登录 |
我只看的懂这个:<HTML><HEAD><TITLE>Hello World</TITLE></HEAD></HTML> -------------------------------------------------------------------------------- 10 PRINT "HELLO WORLD" 20 END 还有这个!!!!!!!~~~~~~~~ |
B57层 发表时间: 04-06-06 09:51 |
回复: zhengzheng [zhengzheng] 论坛用户 | 登录 |
从中学阶段下去程序也来也多? 别有都看不懂哈! 这就是。。 |
B58层 发表时间: 04-06-07 12:07 |
回复: zhanjiajun [zhanjiajun] 论坛用户 | 登录 |
老大,用我贵州的话“MD,凶!”!!!! 我哪年吧才这水平哟!!! |
B59层 发表时间: 04-06-09 20:39 |
回复: liuluo [liuluo] 论坛用户 | 登录 |
286版主真有魅力 他写的是 c:\> echo Hello,world 这个真还能用 我倒忘了 |
B60层 发表时间: 04-06-09 22:42 |
回复: peter [peter] 论坛用户 | 登录 |
呵呵!!!!"hello world"......又一个"hello world" 显示出的都是 hello world /*黑白的*---呵*/ 啊 peter仔也来 settextstyle(1,0,3); setcolor(14); outextxy(250,200,"hello world"); 一个又大又圆的"hello world"来了,还是金色的. |
B61层 发表时间: 04-06-21 20:28 |
回复: honglan [honglan] 论坛用户 | 登录 |
我只想问句话,您学了多长时间 |
B62层 发表时间: 04-06-22 14:57 |
回复: confu [confu] 论坛用户 | 登录 |
<?php echo 'hello,world!'; ?> |
B63层 发表时间: 04-06-24 09:48 |
回复: bellamy [bellamy] 论坛用户 | 登录 |
晕哦! |
B64层 发表时间: 04-07-19 17:23 |
回复: suphen [suphen] | 登录 |
个人觉得越简单越好 不过能把一个简单的程序写的那么复杂 佩服 难道这就是高手~~? |
B65层 发表时间: 05-07-27 03:50 |
回复: qiezic [qiezic] | 登录 |
还好标题有提醒,带上了泳圈! |
B66层 发表时间: 05-07-27 16:01 |
回复: xiaoshi [xiaoshi] 论坛用户 | 登录 |
真不知道现在有多少有成人类啊 呵呵 1个月 3个月 还是n年 -------------------------------------------------------------------------------- 黑客有成 #include <stdio.h> #define S "Hello, World\n" main(){exit(printf(S) == strlen(S) ? 0 : 1);} 看过老谭书的,知道定义常量的,看来都是有成人类了 呵呵 |
B67层 发表时间: 05-07-28 19:01 |
回复: taojuntjpp [taojuntjpp] 论坛用户 | 登录 |
编程高手开始就看不懂啦~ 一点都不懂 如果想成为黑客,高手阶段一定得精通吗? 又被打击了一下,呵呵~~~ 相差的太多 还是继续学吧~~~努力ing~~~ |
B68层 发表时间: 05-07-29 08:51 |
回复: bassjack [bassjack] 论坛用户 | 登录 |
|
B69层 发表时间: 05-07-29 11:09 |
回复: romario [romario] 论坛用户 | 登录 |
/* * this is my first program, */ #include<stdio.h> #include<genlib.h> main() { printf("hello,world\n."); { |
B70层 发表时间: 05-10-04 15:15 |
回复: BearKing [bking] 版主 | 登录 |
main(){printf("Hello World!");} 最简单的C程序了! |
B71层 发表时间: 05-10-09 01:03 |
回复: NetDemon [netdemon] ADMIN | 登录 |
没错了,楼上这个就是幼儿园的了,厉害,找了好久都没找到幼儿园的,竟然给你发掘出来了 |
B72层 发表时间: 05-10-09 11:20 |
回复: zhengzheng [zhengzheng] 论坛用户 | 登录 |
2003年的贴到了2005年10月才终于找到了:main(){printf("Hello World!");} 这个我学会的第一个程序! |
B73层 发表时间: 05-10-09 14:33 |
回复: TecZm [teczm] 版主 | 登录 |
引用: 还是这个好 |
B74层 发表时间: 05-10-09 15:27 |
回复: BBL [bbl] 论坛用户 | 登录 |
title hello world |
B75层 发表时间: 05-10-11 20:30 |
回复: John [fyhjx023] 论坛用户 | 登录 |
#include <windows.h> int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, TEXT ("Hello, Windows XP!"), TEXT ("HelloMsg"),IDIGNORE); return 0 ; } |
B76层 发表时间: 05-10-11 20:46 |
回复: cike [cike] 论坛用户 | 登录 |
这是知识,不是灌水 |
B77层 发表时间: 05-11-08 20:48 |
回复: qwhacker [qwhacker] | 登录 |
三个字,看不懂! |
B78层 发表时间: 05-11-09 16:18 |
回复: nallfather [nallfather] 论坛用户 | 登录 |
的意思是说,玩电脑有两条路: 1、就不要发展,保持菜鸟状态 2、成为高手高手高高手 |
B79层 发表时间: 05-11-12 19:33 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号