-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from BilgisayarKavramlari/1.-Merahba-Dünya
MerhabaDunya.go
- Loading branch information
Showing
13 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <stdio.h> | ||
|
||
int main(){ | ||
printf("Merhaba Dunya"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int main () { | ||
|
||
cout << "Hello World"; | ||
return 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class Program | ||
{ | ||
/// <summary> | ||
/// Konsola Merhaba Dünya yazan C# kod örneği | ||
/// </summary> | ||
|
||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Merhaba Dünya"); | ||
|
||
//Merhaba Dünya yazıp konsolun kapanmasını engellemek | ||
//için kullanıcıdan bir tuşa basmasını istiyoruz | ||
Console.WriteLine("Çıkış Yapmak için bir tuşa basınız."); | ||
Console.ReadKey(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public class MerhabaDuna{ | ||
public static void main(String args[]){ | ||
System.out.println("Merahba Dunya"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
document.write("Merhaba Dünya"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
echo "Merhaba Dünya"; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print "Merhaba Dünya" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
puts "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "Merhaba Dünya" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// main.swift | ||
// merhabaDunya | ||
// | ||
// Created by Kağan on 15.01.2017. | ||
// Copyright © 2017 Kağan Utku Kılıçlı. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
print("Merhaba, Dunya!") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Merhaba Dünya") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Reflection; | ||
using System.Reflection.Emit; | ||
|
||
namespace HelloWorld | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
var name = "MerhabaDunya.exe"; | ||
var assemblyname = new AssemblyName(name); | ||
var assemblybuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(assemblyname, AssemblyBuilderAccess.RunAndSave); | ||
var modulebuilder = assemblybuilder.DefineDynamicModule(name); | ||
var program = modulebuilder.DefineType("Program", TypeAttributes.Public); | ||
|
||
var mainmethod = program.DefineMethod("Main", MethodAttributes.Public | MethodAttributes.Static, null, new Type[] { typeof(string[]) }); | ||
|
||
var ilgenerator = mainmethod.GetILGenerator(); | ||
|
||
ilgenerator.Emit(OpCodes.Ldstr, "Merhaba Dunya!"); | ||
ilgenerator.Emit(OpCodes.Call, (typeof(Console)).GetMethod("WriteLine", new Type[] { typeof(string) })); | ||
ilgenerator.Emit(OpCodes.Call, (typeof(Console)).GetMethod("ReadKey", new Type[0])); | ||
ilgenerator.Emit(OpCodes.Pop); | ||
ilgenerator.Emit(OpCodes.Ret); | ||
|
||
program.CreateType(); | ||
|
||
assemblybuilder.SetEntryPoint(((Type)program).GetMethod("Main")); | ||
|
||
File.Delete(name); | ||
|
||
assemblybuilder.Save(name); | ||
|
||
Process.Start(name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Merhaba Dünya") |