Advertisement
Guest User

Untitled

a guest
May 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. class graf
  2. {
  3.  
  4. public:
  5.     int ma[50][50], m, viz[51];
  6.     int n;
  7.     graf();
  8.     ~graf();
  9.     graf(unsigned);
  10.     void citire_fisier(std::string);
  11.     void citire_tastatura();
  12.     void afisare();
  13.     void set_m();
  14.     void set_n(int);
  15.     int get_i_j(int,int);
  16.     void set_i_j(int, int);
  17.     inline int get_n() // FUNCTIA INLINE , ce ajuta la timpul de executare
  18.     {
  19.         return n;
  20.     }
  21.     int get_m();
  22.     void lista_adiacenta(int);
  23.     int complementar(graf);
  24.     void ma_lant();
  25.     int m_lant(graf&);
  26.     friend graf operator-(graf, int);
  27.     friend graf operator~(graf);
  28.     friend std::ostream& operator<<(std::ostream& out,const graf& g);
  29.     friend std::istream& operator >>(std::istream& in, graf &g);
  30.     friend graf operator-(graf, int);
  31.  
  32.  
  33.  
  34.  
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement