Jump to content

Hello World!!!


Biabarr

Recommended Posts

:D I am new here, and I don't know what else to say :lol:

You could say "hello" again :mellow:

ANyway, welcome to the forest. Don't screw with the newly revived Russian Empire, the Spetsnaz branch and don't wander to far from the forest, and you'll do just fine :D

Link to comment
Share on other sites

I just can't resist.

#include "stdio.h"
#define	e 3
#define	g (e/e)
#define	h ((g+e)/2)
#define	f (e-g-h)
#define	j (e*e-g)
#define k (j-h)
#define	l(x) tab2[x]/h
#define	m(n,a) ((n&(a))==(a))

long tab1[]={ 989L,5L,26L,0L,88319L,123L,0L,9367L };
int tab2[]={ 4,6,10,14,22,26,34,38,46,58,62,74,82,86 };

main(m1,s) char *s; {
   int a,b,c,d,o[k],n=(int)s;
   if(m1==1){ char b[2*j+f-g]; main(l(h+e)+h+e,B); printf(B); }
   else switch(m1-=h){
case f:
    a=(b=(c=(d=g)<<g)<<g)<<g;
    return(m(n,a|c)|m(n,B)|m(n,a|d)|m(n,c|d));
case h:
    for(a=f;a<j;++a)if(tab1[a]&&!(tab1[a]%((long)l(n))))return(a);
case g:
    if(n<h)return(g);
    if(n<j){n-=g;c='D';o[f]=h;o[g]=f;}
    else{c='\r'-'\b';n-=j-g;o[f]=o[g]=g;}
    if((b=n)>=e)for(b=g<<g;b<n;++b)o[b]=o[b-h]+o[b-g]+c;
    return(o[b-g]%n+k-h);
default:
    if(m1-=e) main(m1-g+e+h,s+g); else *(s+g)=f;
    for(*s=a=f;a<e;) *s=(*s<<e)|main(h+a++,(char *)m1);
}
}



Or the simpler version (albeit in a different language):

<?='hello, world'?>

Hi.

Link to comment
Share on other sites

welcome HezulLover

#include "stdio.h"
#define	e 3
#define	g (e/e)
#define	h ((g+e)/2)
#define	f (e-g-h)
#define	j (e*e-g)
#define k (j-h)
#define	l(x) tab2[x]/h
#define	m(n,a) ((n&(a))==(a))

long tab1[]={ 989L,5L,26L,0L,88319L,123L,0L,9367L };
int tab2[]={ 4,6,10,14,22,26,34,38,46,58,62,74,82,86 };

main(m1,s) char *s; {
   int a,b,c,d,o[k],n=(int)s;
   if(m1==1){ char b[2*j+f-g]; main(l(h+e)+h+e,B); printf(B); }
   else switch(m1-=h){
case f:
    a=(b=(c=(d=g)<<g)<<g)<<g;
    return(m(n,a|c)|m(n,B)|m(n,a|d)|m(n,c|d));
case h:
    for(a=f;a<j;++a)if(tab1[a]&&!(tab1[a]%((long)l(n))))return(a);
case g:
    if(n<h)return(g);
    if(n<j){n-=g;c='D';o[f]=h;o[g]=f;}
    else{c='\r'-'\b';n-=j-g;o[f]=o[g]=g;}
    if((b=n)>=e)for(b=g<<g;b<n;++b)o[b]=o[b-h]+o[b-g]+c;
    return(o[b-g]%n+k-h);
default:
    if(m1-=e) main(m1-g+e+h,s+g); else *(s+g)=f;
    for(*s=a=f;a<e;) *s=(*s<<e)|main(h+a++,(char *)m1);
}
}



what programming language is that? looks like Java, since Java is the only programming basics I know~

Link to comment
Share on other sites

It's C, though B)

Also, I didn't write that myself. I just happened to stumble across it some time ago and thought it was pretty awesome that all it did was print 'hello, world'

Link to comment
Share on other sites

Yay someone got the computer programming reference!!

In java it would be

public class HelloWorld {

public static void main (String[] args) {

System.out.println ("Hello world!!!");

}

}

This is the first time I saw java be easier than C.....

Link to comment
Share on other sites

Actually, all that's required for C is this:

#include <stdio.h>

int main()
{
   printf("hello, world\n");
}

The program I showed you was a terribly obfuscated form of this : p

Link to comment
Share on other sites

I can do that too :awesome:

it's in Java :P

public class HelloWorld 
{
int i = 9;
public static void main (String[] args) 
{
 if(1==i)
 {
  System.out.println("nothing");
 }
 else
 {
  print();
 }
}
public void print()
{
 for(int e = 1; e < 2; e++);
 {
  System.out.println ("Hello world!!!");
 }
}
}

also, I'm sorry for spamming in your introduction topic, I just couldn't let this pass :P

Link to comment
Share on other sites

Actually, all that's required for C is this:

#include <stdio.h>

int main()
{
   printf("hello, world\n");
}

The program I showed you was a terribly obfuscated form of this : p

Hmm. My university is making me learn Matlab as part of my Math major. It would take a response like this:

A = 'Hello World'

fprintf('%-13s \n', A)

Link to comment
Share on other sites

also, I'm sorry for spamming in your introduction topic, I just couldn't let this pass :P

Not like intro topics ever really get that many posts anyway.

Anyway, welcome to the forest. I should get a standard "greeting card," like Emerald or Hanz/Hero's thing.

Link to comment
Share on other sites

Hmm. My university is making me learn Matlab as part of my Math major. It would take a response like this:

A = 'Hello World'

fprintf('%-13s \n', A)

That looks pretty easy. However, PHP is the real master.

print 'hello, world';

Or even better, just plain text :awesome:

hello, world

Link to comment
Share on other sites

That looks pretty easy. However, PHP is the real master.

print 'hello, world';

Or even better, just plain text :awesome:

hello, world

Actually, I think you CAN do this:

fprintf('Hello World')

And still get the same thing. So yeah, as programming languages go, Matlab seems to be one of the easiest...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...