SHARE
TWEET

mainfile

a guest Jan 24th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include "Header.h"
  3. using namespace std;
  4. int main() {
  5.     int n;
  6.     cout << "Enter number of carnevals" << endl;
  7.     cin >> n; //input
  8.     karneval* a = new karneval[n];
  9.     djecja_reduta* b = new djecja_reduta[n];
  10.     for (int i = 0; i < n; i++) {
  11.         cout << i + 1 << ".karneval" << endl;
  12.         a[i].input();
  13.         b[i].input();
  14.     }
  15.     for (int i = 0; i < n; i++) {
  16.         a[i].number_of_groups();
  17.         b[i].output();
  18.         b[i].number_of_groups(); //has to be same output as  a[i].number_of_groups()
  19.     }
  20.     delete[]a;
  21.     a = NULL;
  22.     delete[]b;
  23.     b = NULL;
  24.     delete[]c;
  25.     c = NULL;
  26.     return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top