Just poll for the lang u mostly code in.
Printable View
Just poll for the lang u mostly code in.
In my last project, C++, in my current, Pascal. So, "Two of the above".
So, who wants to write the 'hello world' programQuote:
Originally 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..
:)
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
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 :p)Code:<? echo "Hello, World!"; ?>
JavaCode:: hello
begin
true
while
." Hello World "
repeat
;
hello
Visual 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.:D
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
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.
To me, C++, C, and VB is my languages.:rolleyes:
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'
'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
CGI can be done in many different languages. I prefer to use C for it. :)
What? No Cobol? No Fortran?
Sure, they may be dead languages, but so is Latin, and people still speak it.