Just poll for the lang u mostly code in.
Assembly
C
C++
C#
Pascal
Perl
PHP
Forth
Java
Visual Basic
Just poll for the lang u mostly code in.
In my last project, C++, in my current, Pascal. So, "Two of the above".
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
So, who wants to write the 'hello world' programOriginally posted by MovingFulcrum
Just poll for the lang u mostly code in.
in all of those languages? I want to see how
the syntax differs from language to language..
Staying away from General.
I choose C. I'm going to start assembly now, too. I'm ready for the challenge of the most core language there is. But, I love C for software (Windows) programming.
--Garfield
1978 Silver Anniversary Corvette
Assembly
CCode:main: mov dx,hello ;Load the msg's address mov ah,9 ;Standard output function int 21h ;DOS call to dsplay AH mov ax,04C00H ;Exit code int 21h ;execute instruction in AX (Exit instruction) hello db 13,10,"Hello, World!",13,10,"$" ;the msg
C++Code:#include <stdio.h> int main(void) { printf("Hello, World!\n"); return 0; }
C#Code:#include <iostream.h> int main(void) { cout<<"Hello, World!"<<endl; return 0; }
PascalCode:using System; class MyClass { public static void Main(String[] args) { Console.Write("Hello, World!\n"); } }
PerlCode:program Hello; begin writeln ('Hello, world.') end.
PHPCode:print "Hello, World!\n"Forth (AKA ugliest lang on the planet )Code:<? echo "Hello, World!"; ?>
JavaCode:: hello begin true while ." Hello World " repeat ; helloVisual Basic - create a form, add in a label, and change the caption to "Hello, World!"Code:class HelloWorld { public static void main (String args[]) { System.out.print("Hello World "); } }
Well THAT was fun...
Well, that clears *that* up.
Well done that man!
-Pen
>> Forth (AKA ugliest lang on the planet ) <<
That is some nasty looking code. The functionality doesn't even look...worth it.Code:: hello begin true while ." Hello World " repeat ; hello
--Garfield
1978 Silver Anniversary Corvette
Which language do you guys think is the easiest? So far, I only know C++, a tinsy bit of CGI...btw, you guys forgot to include CGI, or is it the same as PHP? um... And I FINALLY succesfully upload a CGI file on the net without a error message showing up, yah! It took me like a half a year to figure out, haha! (I know I'm dumb, acutually I forgot to upload it in ASCII and sometimes I change the code and wrote in symbols without have "\" infront of it. I just realize how annoying it is to not have a compiler to tell you where something is wrong!
Ok, I better shut up now, I reply like 4 threads today, yikes...
And good job -Ken-, you know so many languages!
The easiest language?: Visual Basic by far.
1978 Silver Anniversary Corvette
You had to ask!
in school it was fortran, got any more punch cards
after that came qbasic love that DOS
then enter the 80's
i was forced to do lisp because of AutoCAD.
now just for fun and hopfully for a living someday it' C++ and ASM.
Damn i feel old.
M.R.
With a little help from Oskilian I learned VB (very easy), then a teacher from olympiads taught me C, now I am learning asm.
Camilo
'Going further'
no, life is nice, just a girl fooling around, alcohol fixes everything.
OH, I now have a High School Diploma and need of ron (drink)
'milo: tell 'em how would you do it on Multimedia toolbook (that's DEFINETLY the worst language ever)
oh, and you forgot:
QBASIC
C++ for Win32Code:PRINT "Hello World!"
you know, I did all that on friday on a blackboard at school, it's funny that I found it here too! Camilo can testify to that.Code:#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL,"Hello World!","Hello",MB_OK); return 0; }
Oskilian
Last edited by oskilian; 11-19-2001 at 09:38 PM.
CGI can be done in many different languages. I prefer to use C for it.
Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/
What? No Cobol? No Fortran?
Sure, they may be dead languages, but so is Latin, and people still speak it.