Skip to content

Instantly share code, notes, and snippets.

Avatar

Emir Öztürk emirozturk

View GitHub Profile
@emirozturk
emirozturk / veritabani.sql
Created Apr 25, 2018
PDG Tkinter Uygulaması için veritabanı
View veritabani.sql
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS `ogrenciDers` (
`ogrenciNo` INTEGER NOT NULL,
`dersKodu` TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS `ogrenci` (
`ogrenciNo` INTEGER NOT NULL,
`ogrenciAdi` TEXT NOT NULL,
PRIMARY KEY(`ogrenciNo`)
);
@emirozturk
emirozturk / main.cpp
Created Apr 26, 2018
Multiple Interitance and diamond problem
View main.cpp
#include <iostream>
using namespace std;
class temel {
public:
temel() {
cout << "temel" << endl;
}
~temel() {
cout << "temel yikici" << endl;
}
View virtual.cpp
#include <iostream>
using namespace std;
class temel {
public:
temel() {
cout << "temel" << endl;
}
~temel() {
cout << "temel yikici" << endl;
}
@emirozturk
emirozturk / virtual2.cpp
Created Apr 26, 2018
Virtual Functions
View virtual2.cpp
#include <iostream>
using namespace std;
class temel {
public:
virtual void calis() { //virtual silersek ne olur
cout << "temel calisti" << endl;
}
};
class A : public temel {
public:
@emirozturk
emirozturk / notepad.py
Last active May 2, 2018
Notepad Python
View notepad.py
import tkinter
import tkinter.messagebox
import tkinter.filedialog
import os
dosya = None
def yeni():
global dosya
dosya = None
@emirozturk
emirozturk / main.cpp
Last active Jan 25, 2019
Veri Yapıları 2. Hafta Uygulaması 2016
View main.cpp
#include <stdio.h>
struct ip
{
unsigned char p1,p2,p3,p4;
}typedef Ip;
struct bilgi
{
Ip ip;
int sure;
char silindiMi;
@emirozturk
emirozturk / main.cpp
Created Jan 25, 2019
Veri Yapıları 3. Hafta Uygulaması 2016
View main.cpp
#include <stdio.h>
#include <stdlib.h>
struct dugum
{
int sayi;
struct dugum* sonraki;
}typedef Dugum;
Dugum *kokDugum;
void listele()
{
@emirozturk
emirozturk / main.cpp
Created Jan 25, 2019
Veri Yapıları Stack Uygulaması 2016
View main.cpp
#include <stdio.h>
int stack[10];
int sp=0;
void pop()
{
if(sp == 0)
printf("Stack bos.\n");
else
printf("Deger:%d\n",stack[--sp]);
@emirozturk
emirozturk / main.cpp
Created Jan 25, 2019
Veri Yapıları Çift Yönlü Bağlı Liste Uygulaması 2016
View main.cpp
#include <stdio.h>
#include <stdlib.h>
struct dugum
{
int veri;
struct dugum* onceki;
struct dugum* sonraki;
}typedef Dugum;
Dugum *kok;
Dugum* indexBul()
@emirozturk
emirozturk / main.cpp
Created Jan 25, 2019
Veri Yapıları Parantez Analizi Uygulaması 2016
View main.cpp
#include <stdio.h>
#include <stdlib.h>
struct dugum
{
int veri;
struct dugum* onceki;
struct dugum* sonraki;
}typedef Dugum;
Dugum *kok;
Dugum* indexBul()