Worst Program Ever.

This is a discussion on Worst Program Ever. within the C Programming forums, part of the General Programming Boards category; Code: #include <stdio.h> void main() { printf("Hello world!"); } Worst Program Ever....

  1. #1
    Registered User mfc2themax's Avatar
    Join Date
    Aug 2001
    Posts
    346

    Worst Program Ever.

    Code:
    #include <stdio.h>
    void main()
    {
    printf("Hello world!");
    }
    Worst Program Ever.
    mfc2themax-Creator of all that is.

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385

    the first

    you just wanted to be the first to post on the new c board!

  3. #3
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209

    I disagree

    This is the worst ever written...

    REM BASIC PROGRAM
    BEGIN
    PRINT "HELLO WORLD"
    END

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    no no no...


    echo Hello world!


    (save as stupidprog.bat)

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    <html>

    <html >
    Hello World
    </html >


    save as hello.html

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'd hardly call those the worst programs every. Pointless, and easy come to mind.....

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230

    nuh-uh

    Nuh-uh. here's the absolute WORST of the worst:

    Code:
    using System; 
    
    class Hello
    {
    
         static void Main()    
         { 
              Console.WriteLine("Hello, World!");
         }
    
    }
    That's microsoft's new and over-hyped C#. Anyone ever seen Console.WriteLine() before? Where was it? was it file.writeln() in JAVA? Why, yes, I believe it was...

  8. #8
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230

    Wink mua ha

    Code:
    Program HelloWorld;
    
    uses wincrt;
    
    begin
        
        writeln('Hello World!');
    
    end.

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    >>was it file.writeln() in JAVA? Why, yes, I believe it was...

    Hmm..... I think you might have something there......

    But surely your not asserting that C# is mearly M$'s Java clone, imposed on the programming world to try eliminate the one language that it never really had a hold upon.......

    Hmm......

  10. #10
    Registered User
    Join Date
    Oct 2001
    Posts
    1
    thats a 2 complicated program for me lol

  11. #11
    Registered User Defined's Avatar
    Join Date
    Oct 2001
    Posts
    2

    Talking Guys, you don't get it, look at this code.

    Code:
    %:define _POSIX_SOURCE
    #include<fcntl.h>
    #include<stdio.h>
    #include<unistd.h>
    #include<stdlib.h>
    #include<string.h>
    #include<sys/types.h>
    #include<sys/stat.h>
    #define D(N,t)Z t*N V<%t*z U M0*z); H z)u z; X}
    #define k(x,y)x<0| |fstat(x,&y)| |
    #define h(x)=open(x,O_RDONLY)
    #define b(x),(int)x.st_nlink
    #define B ;typedef g
    #define X exit (1);
    #define O .st_size
    #define U =malloc(
    #define Y S.st_ino
    #define v ;%>else
    #define W .st_dev
    #define o | |read(
    #define Z static
    #define g struct
    #define u return
    #define I char*
    #define V (M2)
    #define H if(
    #define _ ->
    
    /* HE WHO SAYS */
    
    Z I A<:32767/      M0(I )]; Z g     stat S,T; Z        size_t    y B f{
    I n ; g f *  x     ; dev_t d  ;    ino_t i; } f B      t{ M1     s,c; f
    *l; g t*L,*R; }    t; D(a,t)D(E    ,f)Z t*J(t*p,I      n){ H!   p){ p=
    a(); p    _ s =S      O; p _       c=1; p              _ L=p    _ R=0;
    p _ l=    E(); p      _ l  _       n=n; p              _ l _   x=0; p
    _ l  _     d=S W;      p _  l       _ i= Y              v H S   O==p _
    s){ f*        e; for      (e=p _       l; e; e=e _ x)      { H S W==e _ 
    d&&Y==    e _ i)      { u p;        } } e=E(); e _     x=p _ l; e _ 
    n=n; e    _ d =S      W; e _                i=Y; p     _ l=e;  ++p _ 
    c v  H        S O< p    _ s) {                p _ L=     J( p _  L,n)v{
    p _ R=     J (p _       R,n );                } u  p     ; }  Z   int Q(
    I G,I F){ int d          h(G),D h(F);    I m,*M; H k(d,S     )k(D,T   )(y =S 
    O)-T O){ y= 0;       goto d; } H!    (m U y))| |!(M U     y))o d    ,m,y)-
    y o D,M,y)-y)        X y=!memcmp(     m,M,y); M5(m)      ; M5(M    ); d:V
    
     
    close (d );V      close(D); u        y; } Z M2 C(M1       z,M1 N){ M1     i=N*(N-1)/2,
    j=1,s; I q,*e,*    p,*w,*l; e=q=     M4((size_t)i,1);     H!e) X p=q+i;    for(i=0; e-p
    ; ++e){ H!*e&&Q    (A[i:>,A[j])){   V printf("%""l""d"   "\t""%" "s""\t"   "%""s"
    "??/t"             "%""c"   "\11"   "%""d"      "??/t"   "%""d"    "\n",   z,A[i]
    ,A[j],             S W -T   W?'X'   :'='b(      S)b(T)   ); H j    -i-1)   { s=N-
    i-3; w             =e+s+1; l=q+N*   (j-1)-      j*(j-1   )/ 2 ;            do{ *w
    =1; H w==l)        break; w+= s;    } while( s-->0); }   } H++j            ==N){ j=i+++
     2; } } M5(q);     } Z M2 P(t*p     ){ H p){ P(p _ R);   H  p _            c>1){ M1 i=0
             ; f*l=    p _ l;           for (;      i< p _   c; ++i            ){ A[i
             ]= l _    n; l=l           _ x; }      C (p _   s, p _    c); }   P (p _ 
             L) ; }    }  int           main V      { t*r=   0; I F    ; for   (; ; )
    { H!(F U 1024))    )X H !           fgets(      F,1024   ,stdin) )break;   *(F+(y
    =strlen(F))-1)=    0; H!(          F=M3(F,      y)))X H   stat(F,&S)==0    &&S_ISREG(S.
     st_mode)&&S O     )r=J(r          ,F ); }      H r)P(r    ); u 0; }/*     Obfuscated C
    
    IS FREE THINKS MONEY GROWS ON DIRECTORY TREE */

  12. #12
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    this is the worst program:
    Code:
    STARTPROGRAM
    SHOOTMYDOG = "This is Output"
    SHOOTMYCAT  = "This is Input"
    &after the user type his input
    SHOOTMYDOG = "I didn't like your input."
    ENDPROGRAM
    this is my new lang i am making

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21