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
#!/usr/bin/python | |
#-*-coding:utf-8-*- | |
from turtle import * | |
class Disc(Turtle): | |
def __init__(self, n): | |
Turtle.__init__(self, shape="square", visible=False) | |
self.pu() | |
self.shapesize(1.5, n*1.5, 2) # kare-->dikdörtgen |
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
#! /usr/bin/python | |
#-*-coding:utf-8-*- | |
import sys | |
hata = 'hanoi.hata' | |
def move(nerden, nereye): | |
print 'taşı %s --> %s' % (nerden, nereye) | |
def hanoiyap(n, nereye, nerden, using): |
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
#!/usr/bin/ruby | |
#coding:utf-8 | |
def hanoi(n, f, t, u) | |
if (n <= 1) | |
move = "taşı " + f + " --> " + t + "\n" | |
print move | |
else | |
hanoi(n - 1, f, u, t) | |
hanoi(1, f, t, u) | |
hanoi(n - 1, u, t, f) |
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
#include <stdio.h> | |
void ptakas(int *x, int *y) | |
{ | |
int t; | |
t = *x; | |
*x = *y; | |
*y = t; | |
} |
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
{ | |
'authenticating': ['kimlik doğrulama'], | |
'notorious': ['adı çıkmış', 'kötü tanınmış', 'dile düşmüş'], | |
'destroy': ['yıkmak', 'imha etmek'], | |
'provide': ['sağlamak', 'temin etmek'], | |
'obviously': ['belli ki', 'apaçık'] | |
'flourish': ['güzelleşmek'], | |
'apartheid': ['ırkçılık'], | |
'outlandish': ['acayip', 'egzotik'], | |
'sharpen': ['keskinleştirmek', 'sivriltmek'], |
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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
int i, j; | |
char dizgem[] = "123ab4"; | |
char tmp[1]; |
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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#define N 7 | |
int main() | |
{ | |
int i, j; | |
char dizgem[N] = "123ab4"; |
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
/* | |
kayit_kutuk.c programı şu konuları örnekler : | |
Bir giriş kütüğünden yapı (struct) bilgilerinin okunması, | |
Okunan yapı bilgileriyle devingen bellek ataması yöntemiyle yapı listesinin oluşturulması, | |
Yapı listesi içeriğinin çıkış kütüğüne yazılması. | |
Erkan Yasan | |
20.11.2005 | |
*/ |
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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#define N 15 | |
void buyut(char dizge[]) { | |
int i,j; | |
char depo[N]; | |
j = strlen(dizge)-1; | |
for (i = 0; i < strlen(dizge); i++) { |
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
class Stack: | |
def __init__(self, N): | |
self.sinir = N | |
self.items = [] | |
def isEmpty(self): | |
return self.items == [] | |
def push(self, item): | |
if len(self.items) < self.sinir: |