Skip to content

Instantly share code, notes, and snippets.

Avatar

Emir Öztürk emirozturk

View GitHub Profile
View main.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
class Kisi{
private:
string _ad;
int _yas;
public:
View memory.cpp
#include <iostream>
#include <string>
using namespace std;
class sinif{
private:
string parametre;
public:
sinif()
{
View main.cpp
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class kisi {
private:
string ad;
public:
kisi(string ad) {
View Chrono.cpp
#include <iostream>
#include <chrono>
using namespace std;
void fonk1(string deger) {
}
void fonk2(string &deger) {
}
View operatorOverloading.cpp
#include <iostream>
#include <string>
using namespace std;
class kisi {
private:
string _ad;
int _yas;
public:
kisi(string ad, int yas) {
_ad = ad;
@emirozturk
emirozturk / main.cpp
Created Apr 12, 2018
Static, Operator Overloading, Copy Constructor, References
View main.cpp
#include <iostream>
#include <string>
using namespace std;
class sinif{
string deger;
public:
static string sabitDeger;
sinif(string deger){
this->deger = deger;
std::cout << "Yapici cagirildi " << deger << std::endl;
View friend.cpp
#include <iostream>
using namespace std;
class A;
class B{
public:
void oku(A& a);
void yaz(A& a);
};
class A{
private:
View friend2.cpp
#include <iostream>
using namespace std;
class Uzaklik
{
private:
int m;
public:
Uzaklik() : m(0) { }
friend int ekle(Uzaklik u, int miktar);
View inheritance.cpp
#include <iostream>
using namespace std;
class birim {
private:
int hp;
public:
void isYap() {
cout << "Yaparim" << endl;
@emirozturk
emirozturk / tkinter.py
Created Apr 25, 2018
PDG Tkinter Uygulaması
View tkinter.py
import tkinter
import sqlite3
db = sqlite3.connect("veritabani.db")
cursor = db.cursor()
def OgrenciEkle():
ogrenciNo = tbOgrNo.get()
ogrenciAdi = tbOgrAdi.get()
cursor.execute("INSERT INTO ogrenciler VALUES (?,?)",[ogrenciNo,ogrenciAdi])
db.commit()