-
Notifications
You must be signed in to change notification settings - Fork 0
/
sozluk.h
32 lines (29 loc) · 861 Bytes
/
sozluk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __KELIME__H__
#define __KELIME__H__
#include <iostream>
#include <fstream>
#include <string>
#include <clocale>
using namespace std;
class Sozluk{
public:
string sozlukismi;
Sozluk(); //default constructor
Sozluk(string name); //constructor
Sozluk(const Sozluk &object); //copy constructor
Sozluk& operator = (const Sozluk &object); //assignment constructor
string setSozlukIsmi();
int SozlukOlustur();
int SozlukAc(string sozlukismi);
int KelimeAra(); //sozlükte kelime arýyor
int KelimeAra(string aranacakkelime); //overloaded kelime arama
int KelimeEkle(); //sözlüðe kelime ekliyor
int KelimeSay(); //sözlükte kaç kelime olduðunu sayýyor
bool isNumber(string s);
void menu();
void listele();
private:
string aranacakkelime;
string kelime;
};
#endif