Codul sursa al acestei aplicatii este open source si poate fi descarcat de la adresa: https://github.com/mhcrnl/CppPhoneBook.
Resurse: https://www.sourcecodester.com/tutorials/cc/7726/simple-phone-book-c.html
Proiect nou: https://github.com/mhcrnl/PhoneBook-33
contact.h
1: #ifndef CONTACT_H_INCLUDED
2: #define CONTACT_H_INCLUDED
3: #include <iostream>
4: #include <string>
5: #include <iomanip>
6: using namespace std;
7: class Contact{
8: string p_nume, p_prenume, p_email, p_telefon;
9: public:
10: /**
11: Constructorii clasei
12: */
13: Contact();
14: Contact(string nume);
15: Contact(string nume, string prenume);
16: Contact(string nume, string prenume, string email);
17: Contact(string nume, string prenume, string email, string telefon);
18: /**
19: Get/set methods
20: */
21: const string& getNume() const;
22: void setNume(const string& nume);
23: const string& getPrenume() const;
24: void setPrenume(const string& prenume);
25: const string& getEmail() const;
26: void setEmail(const string& email);
27: const string& getTelefon() const;
28: void setTelefon(const string& telefon);
29: const string getNumeIntreg();
30: void afisare();
31: };
32: #endif // CONTACT_H_INCLUDED
Console Application Load, Save, Add, Delete, Sort, and Modify your contacts. Aplicatia este scrisa in c++ si este rulata in Code::Blocks 16.01 pe un sistem linux Fedora 24. Proiectul este realizat in 422 linii de cod.
Instalare
git clone https://github.com/mhcrnl/PhoneBook-1.git
cd PhoneBook-1
Deschiderea proiectului in Code::Blocks.Functii
void Create();
void Load();
int Query(char Search[20]);
void Add();
void Delete();
void Modify();
void Print();
void Save();
void clean();
int valid(char num[]);
void sort();
void split(char string[100],char spliter);

Niciun comentariu:
Trimiteți un comentariu