allia

граф

Sep 10th, 2020
955
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename T>
  5. class Graph
  6. {
  7. private:
  8.   int m; // количество строк
  9.   int n; // количество столбцов
  10.   int arr[10][10];
  11.  
  12. public:
  13.  
  14.   void graph1 (int _m)
  15.   {
  16.     m = _m;
  17.     for (int i = 0; i < m; i++)
  18.         cin >> arr[i];
  19.  
  20.   for (int i = 0; i < m; i++)
  21.       cout << arr[i] << " ";
  22.   }
  23.  
  24. void main()
  25. { int a=0;
  26. cin >> a;
  27.   class Graph;
  28.  
  29. }
  30.  
  31.  
  32.  
RAW Paste Data