Skip to content

Commit

Permalink
Merge pull request #174 from BilgisayarKavramlari/1.-Merahba-Dünya
Browse files Browse the repository at this point in the history
MerhabaDunya.go
  • Loading branch information
BilgisayarKavramlari authored Feb 16, 2017
2 parents 1a0ae4b + d9a9cce commit f8ac1ba
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MerhabaDunya.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <stdio.h>

int main(){
printf("Merhaba Dunya");
return 0;
}
9 changes: 9 additions & 0 deletions MerhabaDunya.cpp
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;

}
16 changes: 16 additions & 0 deletions MerhabaDunya.cs
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();
}
}
5 changes: 5 additions & 0 deletions MerhabaDunya.java
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");
}
}
1 change: 1 addition & 0 deletions MerhabaDunya.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.write("Merhaba Dünya");
5 changes: 5 additions & 0 deletions MerhabaDunya.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

echo "Merhaba Dünya";

?>
1 change: 1 addition & 0 deletions MerhabaDunya.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print "Merhaba Dünya"
1 change: 1 addition & 0 deletions MerhabaDunya.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
puts "Hello World"
2 changes: 2 additions & 0 deletions MerhabaDunya.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Merhaba Dünya"
12 changes: 12 additions & 0 deletions MerhabaDunya.swift
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!")

1 change: 1 addition & 0 deletions MerhabaDunya2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Merhaba Dünya")
40 changes: 40 additions & 0 deletions MerhabaDunyaReflection.cs
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);
}
}
}
1 change: 1 addition & 0 deletions Python'da Ekrana "Merhaba Dünya" bastırma
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Merhaba Dünya")

0 comments on commit f8ac1ba

Please sign in to comment.