Guest User

Untitled

a guest
Apr 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. struct PQ {
  3. int* arrayy;
  4. int size;
  5. PQ (int* arr, int n) {
  6. arrayy = arr;
  7. size = n;
  8. }
  9. };
  10. int main () {
  11. int arr[5] = {1,2,3,4,5};
  12. PQ pq(arr, 5);
  13. std::cout << pq.arrayy[2];
  14. }
Add Comment
Please, Sign In to add comment