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: |
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 <stdlib.h> | |
int main() { | |
int i; | |
int state = 0; | |
char s[] = "merhaba"; | |
for (i = 0; i < strlen(s); 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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#include <math.h> | |
int main() | |
{ | |
char s[] = "-12.34"; | |
float sonuc = 0.0,n = 0.0, m = 0.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
#include <stdio.h> | |
#include <string.h> | |
#define BOY 128 | |
int main() { | |
char s[BOY] = "sayzzzzbbbccccdddee"; | |
char depo[BOY]; | |
int i; | |
for (i = 0; i < BOY; i++) | |
depo[i] = 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int isY(char ch){ | |
if(ch == 'C'|| ch == 'T') return 1; | |
else return 0; | |
} | |
int isX(char ch){ | |
if(ch == 'A'|| ch == 'T') return 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
1./usr/bin dizinindeki sembolik linkleri ve çalıştırılabilir dosyaları ayrı ayrı bulup görüntüleyen bir program. | |
bu program while ve for kullanarak ayrı ayrı yazılacak. | |
2.ismi 3 karakteri geçmeyen program isimlerini bulup görüntüleyen bir program. | |
3.ev dizininde kota kontrolu yapmamızı isteyen bir program.(du kullanılacak) | |
4. ev dizininde boyutu en büyük ilk 5 dosyayı yazan betik. |
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
csv olarak bir öğrenci listesi oluşturup(ad,soyad,no) | |
isim, soyisim, no dosyası oluşturacak betik. | |
daha sonra örneğin 2008 girişlilerle 2009 girişlileri ayrı ayrı yazacak betik |
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
###elimdeki ingilizce wmv derslerini avi'ye cevirmek icin acilen yazdigim bir betik | |
###vidyolar wmv olunca vlc player ile-geri yapmakta sorun yasiyor | |
#-*-coding:utf-8-*- | |
import os,time | |
files = os.listdir(os.getcwd()) | |
for fil in files: | |
if fil[len(fil[:-3]):] == 'wmv': | |
print "simdi su dosya avi'ye ceviriliyor: ",fil[:-4] |
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> | |
int bolme_islemi( int bolunen, int bolen, int *kalan ) | |
{ | |
*kalan = bolunen % bolen; | |
return bolunen / bolen; | |
} | |
int main( void ) | |
{ | |
int bolunen, bolen; | |
int bolum, kalan; |
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> | |
int main( void ) | |
{ | |
int i,elm; | |
int *ptr; | |
int month[ 12 ] = {0,1,2,3,4,5,6,7,8,9,10,11}; | |
for (i = 0; i<12; i++) | |
printf("%d,",i); | |
printf("\n"); | |
ptr = month; // month[0] adresini atar |