Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "Header.h"
- using namespace std;
- int main() {
- int n;
- cout << "Enter number of carnevals" << endl;
- cin >> n; //input
- karneval* a = new karneval[n];
- djecja_reduta* b = new djecja_reduta[n];
- for (int i = 0; i < n; i++) {
- cout << i + 1 << ".karneval" << endl;
- a[i].input();
- b[i].input();
- }
- for (int i = 0; i < n; i++) {
- a[i].number_of_groups();
- b[i].output();
- b[i].number_of_groups(); //has to be same output as a[i].number_of_groups()
- }
- delete[]a;
- a = NULL;
- delete[]b;
- b = NULL;
- delete[]c;
- c = NULL;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement