Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include "dinalloc.h"
- using namespace std;
- int main() {
- int n;
- cout << "Put a number for the array: ";
- cin >> n;
- hi *vet = new hi[n]; // dinamic allocation of an array of structures
- loadHistogram(vet, n);
- printHistogram(vet, n);
- delete []vet;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment