programlama ya giriş Hello World 50 Farklı dilde

Genellikle programlama dillerini öğrenirken ister masaüstü ister web olsun klasik giriş cümlemiz vardır

Hello World –> Merhaba Dünya 50 adet programlama dilinde nasıl merhaba dünya yazıldığını gördük :)

1. C

#include <stdio.h>

 int main()
 {
    printf("Hello, world!\n");
    return 0;
 }

2. C++

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello, World!" << endl;
    return 0;
}

3. Java

public class HelloWorld
{
     public static void main(String[] args)
     {
          System.out.println("Hello, world!");
     }
}

4. C#

 public class HelloWorld
 {
     static void Main()
     {
         System.Windows.Forms.MessageBox.Show("Hello, world!");
     }
 }

5. Phython

'Hello, world!'

6. PHP

<?php
    echo 'Hello, world!';
?>

7. ASP

<%= "Hello, world!" %>

 

8. ASP.NET

<asp:Label ID="Label1" runat="server" Text="Hello World"></asp:Label>

9. JSP

<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<HTML>
   <BODY>
        <% out.println(" Hello, world!"); %>
   </BODY>
</HTML>

10. SQL

CREATE TABLE message (text CHAR(15));
 INSERT INTO message (text) VALUES ('Hello, world!');
 SELECT text FROM message;
 DROP TABLE message;

11 PL/SQL

SET serveroutput ON size 1000000;  -- this is a SQL*Plus command to enable the output buffer
BEGIN
    DBMS_OUTPUT.put_line('Hello, world!');
END;

12. Perl

print "Hello, world!\n";

13. Perl 6

"Hello, world!".say

14. ActionScript

trace("Hello, world!");

15. ActionScript 3

package
{
    public class HelloWorld
    {
        public function HelloWorld()
        {
            trace("Hello, world!");
        }
    }
}

16. ActionScript (Adobe Flash)

this.createTextField("hello_txt",0,10,10,100,20);
this.hello_txt.text="Hello, world!";

17. Javascript

document.writeln('Hello, World!');

18. OpenScript

-- in a popup window
request "Hello world"

19. XMLMosaic

<Class>
  <Type>XMLmosaic Class</Type>
  <Method>
    <Name id="1">Main</Name>
    <Code id="1">void Main()
{
Console.WriteLine('Hello World!');
}
    </Code>
  </Method>
  <Counter>
    <Count>1</Count>
  </Counter>
</Class>

20. AppleScript

display dialog "Hello, world!" buttons {"OK"} default button 1

21. HTML (is a markup language)

<html>
  <body>
    Hello, world!
  </body>
</html>

22. XHTML

<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
   <title>Hello, world!</title>
  </head>
  <body>
   <p>Hello, world!</p>
  </body>
</html>

23. HTML 5

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Hello, World!</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <h1>Hello, world!</h1>
  </body>
</html>

24. Ruby

 puts 'Hello, world!'

25. BASIC

10 PRINT "Hello, world!"
20 END

26. Visual Basic

Private Sub Form_Load()
  MsgBox "Hello, world"
End Sub

27. Visual Basic .NET

Module HelloWorldApp
  Sub Main()
     System.Console.WriteLine("Hello, world!")
  End Sub
End Module

28. Visual Basic Script

WScript.Echo "Hello, world!"

29. Mathematica

Print["Hello, world!"]

30. MATLAB

disp('Hello, world!')

31. VHDL

use std.textio.all;

entity Hello is
end Hello;

architecture Hello_Arch of Hello is
begin
       p : process
       variable l:line;
       begin
               write(l, String'("Hello, world!"));
               writeline(output, l);
               wait;
       end process;
end Hello_Arch;

32. Verilog

module main();
       initial begin
              #0 $display("Hello, world!!");
              #1 $finish;
       end
endmodule

33. COBOL

IDENTIFICATION DIVISION.
PROGRAM-ID.  HELLO-WORLD.
PROCEDURE DIVISION.
    DISPLAY "Hello, world!"
    STOP RUN.

34. Fortron 90 / 95

program hello
    write(*,*) 'Hello, World!'
end program hello

35. ASCII (hexadecimal notation)

48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21 0D 0A

36. MS-DOS

@echo Hello World!

37. Bash / sh

echo 'Hello, world!'

38. Lisp

(format t "Hello, world!~%")

39. Go

package main

 import "fmt"

 func main() {
   fmt.Printf("Hello, world!")
 }

40. Curl

{curl 3.0, 4.0 applet}
{curl-file-attributes character-encoding = "utf-8"}

Hello, world!

41. Delhpi

{$APPTYPE CONSOLE}
begin
  Writeln('Hello, world!');
end.

42. Gtk#

using Gtk;
using GtkSharp;
using System;

class Hello {

    static void Main()
    {
        Application.Init ();

        Window window = new Window("");
        window.DeleteEvent += cls_evn;
        Button close  = new Button ("Hello, world!");
        close.Clicked += new EventHandler(cls_evn);

        window.Add(close);
        window.ShowAll();

        Application.Run ();

    }

    static void cls_evn(object obj, EventArgs args)
    {
        Application.Quit();
    }

}

43. Qt toolkit (in C++)

 #include <QApplication>
 #include <QMessageBox>

 int main(int argc, char * argv[])
 {
     QApplication app(argc, argv);
     QMessageBox::information(0, "Qt4", "Hello World!");
 }

44. PostScript

% Displays on console.
(Hello, world!) =

45. JavaFX

Frame {
   title: "Hello World JavaFX"
   width: 200
   content: Label {
      text: "Hello World"
   }
   visible: true
}

46. Logo

print [Hello, world!]

47. Objective C

#import <stdio.h>

int main (int argc, const char *argv[])
{
    printf ("Hello, world!\n");
    return 0;
}

48. Adobe Flex MXML

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Label text="Hello, world!"/>
</mx:Application>

49. VBA

Sub Main()
    MsgBox "Hello, world!"
End Sub

50. StarOffice/OpenOffice Basic

 SUB main
     PRINT "Hello, world!"
 END SUB
kaynak: wikibooks.org
programlama ya giriş Hello World 50 Farklı dilde yazısına ait etiketler : , , , Google
programlama ya giriş Hello World 50 Farklı dilde yazısında telif haklarına ve yasalara aykırı bir bilgi veya link bulunuyorsa lütfen buradan iletişime geçiniz.

Tutmayın beni... Yorum yazcam.

Yorum ekleye bilir yada yazı için geri bildirim gönderebilirsiniz..Bu yazı için yorumlarına abone ol: subscribe to these comments RSS.

 

Yorum içerisinde kullanabileceğiniz Html tagları :
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Yazıya yorum yazdığınızda yorumunuzun hemen yanında bir Gravatarınız yayınlanacaktır.Hani benim Gravatarım?.